?? geometricobject.java
字號:
public abstract class GeometricObject
{
protected String color;
protected double weight;
protected GeometricObject()
{
color = "white";
weight = 1.0;
}
protected GeometricObject(String color, double weight)
{
this.color = color;
this.weight = weight;
}
public String getColor()
{
return color;
}
public void setColor(String color)
{
this.color = color;
}
public double getWeight()
{
return weight;
}
public void setWeight(double weight)
{
this.weight = weight;
}
public abstract double findArea();
public abstract double findPerimeter();
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -