public class Shape{ private boolean isFilled; private String color; public Shape() { this.isFilled = true; this.color = "Green"; } public Shape(boolean isFilled,String color){ this.isFilled = isFilled; this.color = color; } public void setColor(String color) { this.color = color; } public void setIsFilled(boolean isFilled){ this.isFilled = isFilled; } public String getColor() { return this.color; } public boolean getIsFilled(){ return this.isFilled; } public String toString() { String ret = ""; ret += "Filled: "+this.isFilled + "\n"; ret += "Color: "+this.color + "\n"; return ret; } }