5.组合与继承

Composition (组合)关系下的构造与析构

Screen Shot 2018-08-09 at 07.01.11.png

Delegate(委托).Composition by reference

Screen Shot 2018-08-09 at 07.10.40.png

Inheritance (继承)


Screen Shot 2018-08-09 at 07.23.26.png

Inheritance (继承) 关系下的构造与析构
基类的析构函数必须是Virtual


Screen Shot 2018-08-09 at 07.27.02.png

你可能感兴趣的:(5.组合与继承)