源码简介: |
设计一个用于人事管理的People(人员)类。考虑到通用性,这里只抽象出所有类型人员都具有的属性:number(编号),sex(性别),birthday(出生日期),id(身份证号)等等。其中“出生日期”定义为一个“日期”类内嵌子对象。用成员函数实现对人员信息的录人和显示。要求包括:构造函数和析构函数、拷贝构造函数、内联成员函数、聚集。-Design a personnel management for the People (staff) category. Taking into account the general nature, where only the abstract type of personnel have all the attributes: number (number), sex (gender), birthday (date of birth), id (ID number) and so on. The " birth date" is defined as a " date" class embedded child objects. With members of the personnel function to realize the information recorded and displayed. Requirements include: the constructor and destructor, copy constructor, inline member functions, together.
|