2024年4月7日

4.7

摘要: 学习内容: 多态转型:向上转型 Animal a = new Cat(); a.eat(); 向下转型 Cat c = (Cat)a; c.eat(); 抽象方法没有方法体,抽象类中有抽象方法 抽象类 public abstract class Animal() 阅读全文

posted @ 2024-04-07 22:31 HA_wind 阅读(7) 评论(0) 推荐(0)

导航