From 58f1863a9c5694287dc1907c26e67425d6212903 Mon Sep 17 00:00:00 2001 From: pcz3ky6q2 <2126302786@qq.com> Date: Mon, 17 Jun 2024 20:37:50 +0800 Subject: [PATCH] ADD file via upload --- worker.h | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 worker.h diff --git a/worker.h b/worker.h new file mode 100644 index 0000000..161a3ba --- /dev/null +++ b/worker.h @@ -0,0 +1,15 @@ +#pragma once +#include +#include +using namespace std; +// 职工抽象基类 +class worker { + public: + // 显示个人信息 + virtual void showInfo() = 0; + // 获取岗位名称 + virtual string getDeptName() = 0; + int m_Id; // 职工编号 + string m_Name; // 职工姓名 + int m_DeptId; // 职工所在部门名称编号 +};