赞
踩
**13.1(三角形类)
- package p13;
-
- public abstract class GeometricObject {
- private String color;
- private boolean filled;
- private java.util.Date dateCreated;
-
- //构造方法
- protected GeometricObject() {
- dateCreated=new java.util.Date();
- }
-
- //构造方法
- protected GeometricObject(String color, boolean filled) {
- this.color=color;
- this.filled=filled;
- dateCreated=new java.util.Date();
- }
-
- public String getColor() {
- return color;
-
- }
-
- public void setColor(String color) {
- this.color=color;
- }
-
- public boolean isFilled() {
- return filled;
-
- }
-
- public void setFilled(boolean filled
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。