pragma once
include
using namespace std;
include
class worker
{
public:
virtual void m_show() = 0;
virtual string m_post() = 0;
int m_id;//职工编号
string m_name;//职工姓名
int m_job;//职工岗位
};
class employee: public worker
{
public:
employee(int id,string name,int post);
void m_show();
string m_post();
};
class manager: public worker
{
public:
manager(int id,string name,int post);
void m_show();
string m_post();
};
class boss: public worker
{
public:
boss(int id,string name,int post);
void m_show();
string m_post();
};
标签:string,show,int,worker,post,public From: https://www.cnblogs.com/ningmeng8180/p/18264510