确确实实的菜鸟

导航

2009年3月30日

多继承的构造函数和析构函数

摘要: #include class B1 //基类B1,构造函数有参数 { public: B1(int i) {cout <<“constructing B1”<< i << endl;} }; class B2 //基类B2,构造函数有参数 { public: B2(int j) {cout <<“constructing B2”<< j << en... 阅读全文

posted @ 2009-03-30 16:24 菜菜春 阅读(894) 评论(0) 推荐(0) 编辑