一、多态的定义 二、多态的要点 三、代码实测 多态必要条件3——父类引用Animal a指向子类对象d;等价于Animal a=new Dog(); !!! 四、运行结果 转载于:https://www.cnblogs.com/happylan/p/10637239.html