原文:If I ve cast a subclass as its superclass, and call a method that was overridden in the subclass, does it perform the overridden or original method?
考虑: 狗是动物的子类, 狗取代动物。eat () 动物[] 动物 = AllAnimals (); 对于 (i = 0; i < 动物. 长度; i++) { 动物[i].eat (); } 如果动物.eat () 是...