diff --git a/boss.h b/boss.h new file mode 100644 index 0000000..3c10e52 --- /dev/null +++ b/boss.h @@ -0,0 +1,13 @@ +#pragma once +#include +using namespace std; +#include "worker.h" +// 老板类 +class Boss : public worker { + public: + Boss(int id, string name, int dId); + // 显示个人信息 + virtual void showInfo(); + // 获取职工岗位名称 + virtual string getDeptName(); +};