向上轉型與繼承密切相關- 這是Java中的另一個核心概念。使用引用變量來引用更具體 ... public class Cat extends Animal { public void eat() { // .
確定! 回上一頁