cppoop作业:Inheritance+Composition 關係下的構造和析構

Inheritance+Composition 關係下的構造和析構
哪个的ctor先被调用。

父类先于组件类调用 构造函数

posted @ 2018-08-07 16:21  lightmare  阅读(140)  评论(0编辑  收藏  举报