摘要: public class Dextend { public static void main(String[] args) throws Exception{ //多态:子类重写父类方法 //父类变量 = new 子类对象(); Animal d1 = new Dog(); Animal d2 = 阅读全文
posted @ 2023-03-14 14:52 kang09 阅读(8) 评论(0) 推荐(0) 编辑