摘要:
/*向上类型转换和拷贝构造函数拷贝构造函数拷贝构造函数如果允许便以其为派生类生成拷贝构造函数,它将首先自动调用基类的拷贝构造函数,然后再是各成员对象的拷贝构造函数*/#include <iostream>using namespace std;class Parent{int i;public:Parent(int ii):i(ii){cout << "Parent(int... 阅读全文
posted @ 2010-11-17 20:18
PhoenixZq
阅读(474)
评论(0)
推荐(0)
浙公网安备 33010602011771号