Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package HW.OOP.SHOP;
- public class Lamp {
- private String type;
- private String color;
- private String light;
- private double powerConsumption;
- public Lamp(String type, String color, String light, double powerConsumption) {
- this.type = type;
- this.color = color;
- this.light = light;
- this.powerConsumption = powerConsumption;
- }
- public String getType() {
- return type;
- }
- public String getColor(){
- return color;
- }
- public String getLight() {
- return light;
- }
- public double getPowerConsumption() {
- return powerConsumption;
- }
- public void setLight(String light) {
- this.light = light;
- }
- public void setColor(String color) {
- this.color = color;
- }
- public void setType(String type) {
- this.type = type;
- }
- public void setPowerConsumption(double powerConsumption) {
- this.powerConsumption = powerConsumption;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement