05 2017 档案

摘要:shape.h shape_test.cpp 阅读全文
posted @ 2017-05-04 21:02 新未
摘要:1. Composition复合 has a的关系,表示一个类是另一个类的成员变量,一个类包含另一个类 class A; class B { public: B(){} ~B(){} private: A a; int b; }; 构造与析构 构造-由内而外:B的构造函数会首先调用A的默认构造函数( 阅读全文
posted @ 2017-05-04 20:59 新未

回到顶部