多态成员访问特点


new对象时 Animal animal=new Dog();
这样成员变量来自左边 成员方法来自右边
都没有才找另一个

posted @ 2024-06-24 14:05  DemoLiQi  阅读(19)  评论(0)    收藏  举报