子类的拷贝构造 与 赋值重载

主函数: #include "stdafx.h" #include <iostream> using namespace std; #include "Student.h" #include "Graduate.h" #if 0 //拷贝构造 子类::子类(const 子类& another) :父类(another),子类新成员(another.新成员) { } //赋值重载 子类&
相关文章
相关标签/搜索