package Exercise;import java.util.Date;public abstract class GeometricObject {private String color;public String getColor() {return color;}public void setColor(String color) {this.color = color;}public Date getDataCreated() {return dataCreated;}public void setDataCreated(Date dataCreated) {this.dataCreated = dataCreated;}public Boolean getFilled() {return filled;}public void setFilled(Boolean filled) {this.filled = filled;}private Date dataCreated;private Boolean filled;public String toString() {return "created on " + dataCreated + "\ncolor: " + color +" and filled: " + filled;}abstract double getArea();abstract double getPerimeter();public Boolean isFilled() {if (filled)return true;elsereturn false;}}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。