From 468a3a189689822fe4ed041a4e08ed47c458b322 Mon Sep 17 00:00:00 2001 From: pcz3ky6q2 <2126302786@qq.com> Date: Mon, 17 Jun 2024 20:33:29 +0800 Subject: [PATCH] ADD file via upload --- employee.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 employee.h 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