例子: 用子类转为父 用父类的引用指向子类对象 向上转型 Animal a = new Cat(); a.eat 用子类转为父类 用父类来引用转型为子类对象 向下转型 Cat c = (Cat)a; c.eat