java編程-面向對象---繼承和多態

 (參考http://java.chinaitlab.com/List_186_17.html)html        class Animal {  private int weight;      public int getWeight()  {   return weight;  }    public void setWeight(int w)  {   weight=w;  } }ja
相關文章
相關標籤/搜索