多态

 

Animal animal = new Tom();//向上转型

 

posted @ 2022-04-15 13:47  SherryYuan  阅读(25)  评论(0)    收藏  举报