Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package HW.OOP.SHOP;
- public class Fridge {
- private String model;
- private double volume;
- private String color;
- private double powerConsumption;
- public Fridge(String model, String color, double volume, double powerConsumption) {
- this.model = model;
- this.color = color;
- this.volume = volume;
- this.powerConsumption = powerConsumption;
- }
- public String getModel() {
- return model;
- }
- public String getColor(){
- return color;
- }
- public double getVolume() {
- return volume;
- }
- public double getPowerConsumption() {
- return powerConsumption;
- }
- public void setVolume(double volume) {
- this.volume = volume;
- }
- public void setColor(String color) {
- this.color = color;
- }
- public void setModel(String model) {
- this.model = model;
- }
- public void setPowerConsumption(double powerConsumption) {
- this.powerConsumption = powerConsumption;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement