基类的需方法和子类的多态

一个基类的引用指向派生类的话,基类中的虚方法(virtual)是可以在派生类中进行重写()

 

 

 

 

posted on 2019-04-03 11:44  L_poison  阅读(75)  评论(0编辑  收藏  举报

导航