package factoryMethod;
protected int screenSize;
protected int weight;
protected float brightness;
public Monitor(int screenSize,
int weight,
float brightness
) { super();
this.screenSize = screenSize;
this.weight = weight;
this.brightness = brightness;
}
public float getBrightness() {
return brightness;
}
public void setBrightness(float brightness) {
this.brightness = brightness;
}
public int getScreenSize() {
return screenSize;
}
public void setScreenSize(int screenSize) {
this.screenSize = screenSize;
}
public int getWeight() {
return weight;
}
public void setWeight(int weight) {
this.weight = weight;
}
}