PhoenixZq
分享是一门艺术~~
摘要: /*向上类型转换和拷贝构造函数拷贝构造函数拷贝构造函数如果允许便以其为派生类生成拷贝构造函数,它将首先自动调用基类的拷贝构造函数,然后再是各成员对象的拷贝构造函数*/#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 阅读(463) 评论(0) 推荐(0) 编辑