文件名称:5_8
- 所属分类:
- 控制台(字符窗口)编程
- 资源属性:
- [C/C++] [Windows] [Visual C] [源码]
- 上传时间:
- 2014-04-15
- 文件大小:
- 244kb
- 下载次数:
- 0次
- 提 供 者:
- 陈*
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
[8] 一个名为CPersonInfo的类有以下保护属性:姓名、身份证号、性别和年龄,请用C++语言定义这个类,并为上述属性定义相应的方法。然后从CPersonInfo类中派生出类CEmployeeInfo (雇员),派生类CEmployeeInfo增加了两个新的数据成员,分别用于表示部门和工资。要求派生类CEmployeeInfo的构造函数显式调用基类CPersonInfo的构造函数,可根据需要为派生类增加新的成员函数。-a class called CPersonInfo protection attributes are the following: name, ID number, gender and age, please use the C++ language definition of this class, and define the appropriate method for the above property. Then derived from CPersonInfo class class CEmployeeInfo (employees), the derived class CEmployeeInfo added two new data members, and wages were used to represent the department. CEmployeeInfo derived class constructor requires an explicit call to the base class constructor CPersonInfo, you can add new derived class member functions as needed.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
5_8\5_8.cpp
...\5_8.dsp
...\5_8.dsw
...\5_8.ncb
...\5_8.opt
...\5_8.plg
...\Debug\5_8.exe
...\.....\5_8.ilk
...\.....\5_8.obj
...\.....\5_8.pch
...\.....\5_8.pdb
...\.....\vc60.idb
...\.....\vc60.pdb
...\Debug
5_8