diff --git a/boss.cpp b/boss.cpp new file mode 100644 index 0000000..6bd76a4 --- /dev/null +++ b/boss.cpp @@ -0,0 +1,13 @@ +#include "boss.h" +Boss::Boss(int id, string name, int dId) { + this->m_Id = id; + this->m_Name = name; + this->m_DeptId = dId; +} +void Boss::showInfo() // 打印职工信息 +{ + cout << "职工编号:" << this->m_Id << "\t职工姓名:" << this->m_Name + << "\t岗位:" << this->getDeptName() << "\t岗位职责:管理好公司" << endl; +} + +string Boss::getDeptName() { return string("老板"); }