1 Star 0 Fork 1

diycp2015 / 基于多态的职工管理系统

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
employee.cpp 478 Bytes
一键复制 编辑 原始数据 按行查看 历史
= 提交于 2021-09-07 14:27 . 第一次提交,未分类
#include "employee.h"
Employee::Employee(int id,string name,int dID){
this->m_ID = id;
this->m_Name = name;
this->m_DeptId = dID;
}
Employee::~Employee(){
}
void Employee::showInfo(){
cout << " 职工编号:" << this->m_ID
<< " 职工姓名:" << this->m_Name
<< " 岗位:" << this->getDeptName()
<< " 岗位职责:完成经理交给的任务" << endl;
}
std::string Employee::getDeptName(){
return string("员工");
}
C++
1
https://gitee.com/diycp2015/EmployeeManagementSystem.git
git@gitee.com:diycp2015/EmployeeManagementSystem.git
diycp2015
EmployeeManagementSystem
基于多态的职工管理系统
master

搜索帮助