diff --git a/employee.h b/employee.h new file mode 100644 index 0000000..608fe31 --- /dev/null +++ b/employee.h @@ -0,0 +1,14 @@ +#pragma once +#include +using namespace std; +#include "worker.h" +// 员工类 +class Employee : public worker { + public: + // 构造函数 + Employee(int id, string name, int dId); + // 显示个人信息 + virtual void showInfo(); + // 获取职工岗位名称 + virtual string getDeptName(); +}; \ No newline at end of file