假設有若干 (如10)個Circle,Rectangle和Square形狀,計算它們的總面積。

package OctoberTwentyfour; abstract class Shape{     protected String type;      protected double area, perim;      public abstract void computeArea();      public String toString()      {  return typ
相關文章
相關標籤/搜索