上面我們提到,抽象是一個概念,而不是一個存在的實體。同樣的,抽象類別不能被實體化。 範例程式,抽象類別定義:. abstract class Animal{. int height,weight;.
確定! 回上一頁