摘要: 在单继承的情况下,父类构造先于子类,子类析构先于父类,例:class A {public: A() { cout << "A" << endl; } ~A() { cout << "~A" << endl; }};class B : public ... 阅读全文
posted @ 2015-03-21 21:30 厕所门口~~ 阅读(948) 评论(0) 推荐(0) 编辑