文件名称:Employee
介绍说明--下载内容来自于网络,使用问题请自行百度
先建立一个职工类Employee,包含数据成员name(职工姓名),ID(职工编号)。以它为基类,派生出经理类Manager和技术人员类Technician,在经理类中增加数据成员salary(代表经理的月工资),在技术人员类中增加数据成员wage(代表每小时的工资数)和hours(月工作时数)。在定义类时,所有类中必须包含有构造函数、析构函数、修改和获取所有数据成员的函数,以及纯函数计算职工的工资,输出职工的信息。-To establish a trade union class Employee contains data member name (employee name), ID (employee number). Use it as a base class, derived manager classes Manager and technical staff Class Technician, increase in the manager class data members salary (on behalf of the manager of the month wage), and to increase the data members of the class of the technical staff wage (the hourly wage by the number of the representatives) working hours) and hours (months. Must be included in the definition of the class, all class constructor, destructor the function modify and access to all data members, as well as the pure function to calculate the wages of employees, information on output of workers.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
Employee.doc
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.