public class GeometricObject { private String color; private boolean filled; private java.util.Date dateCreated; //0-arg constructor public GeometricObject() { color = "white"; //(moved from book's default value above) filled = false; dateCreated = new java.util.Date(); //color is white, filled is false, from the above } public String getColor() { return color; } public void setColor(String color) { this.color = color; } /** Return filled. Since filled is boolean, its get method is named isFilled */ public boolean isFilled() { return filled; } public void setFilled(boolean filled) { this.filled = filled; } public java.util.Date getDateCreated() { return dateCreated; } /** Return a string representation of this object */ public String toString() { return "created on " + dateCreated + "\n color: " + color + " and filled: " + filled; } }