摘要: //虚析构函数#include <iostream>using std::cout;using std::endl;class Base{public: Base() { cout << "Base constructed!" << endl; //基类构造函数 } ~Base() { cout << "Base destructed" << endl; //基类析构函数 } };class Deliver1:public B... 阅读全文
posted @ 2012-05-21 19:22 waynewuzhenbo 阅读(251) 评论(0) 推荐(0) 编辑