package [Link].
inheritance;
import [Link];
public class GeometricObject {
private String color;
private boolean filled;
private Date dateCreated;
public String getColor() {
return color;
}
public void setColor(String color) {
[Link] = color;
}
public boolean isFilled() {
return filled;
}
public void setFilled(boolean filled) {
[Link] = filled;
}
public Date getDateCreated() {
return dateCreated;
}
public GeometricObject(String color, boolean filled) {
[Link] = color;
[Link] = filled;
[Link] = new Date();
}
public GeometricObject() {
[Link] = "white";
[Link] = false;
[Link] = new Date();
}
@Override
public String toString() {
return "created on "+dateCreated +"\ncolor ="+
color+" and filled"+filled;
}
}