C++ 自学笔记 向上造型 Upcasting

子类对象可以当成父类对象来看

 

posted @ 2022-10-04 19:16  slowlydance2me  阅读(35)  评论(0编辑  收藏  举报