level 5
public class GeometricObject {
private String color = "white";
private boolean filled;
private java.util.Date dateCreated; public GeometricObject() {
dateCreated = new java.util.Date();
} public GeometricObject(String color, boolean filled) {
dateCreated = new java.util.Date();
this.color = color;
this.filled = filled;
} public String getColor() {
return color;
} public void setColor(String color) {
this.color = color;
} public boolean isFilled() {
return filled;
} public void setFilled(boolean filled) {
this.filled = filled;
} public java.util.Date getDateCreated() {
return dateCreated;
} public String toString() {
return "created on " + dateCreated + "\ncolor: " + color
+ " and filled: " + filled;
}
}
这段求解释啊大哥们
2012年05月02日 15点05分