⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 officer.h

📁 设计模式实例: 工厂方法(Factory)源代码)
💻 H
字号:
// Officer.h: interface for the Officer class.
//
//////////////////////////////////////////////////////////////////////



#if !defined(AFX_OFFICER_H__90F13E78_77DD_43C3_AF6F_A43986EBC4BE__INCLUDED_)
#define AFX_OFFICER_H__90F13E78_77DD_43C3_AF6F_A43986EBC4BE__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

#include <iostream.h>
#include <string.h>

enum OfficialType
{
	PresidentType=1,
	AttorneyGeneralType,
	MinorityPartyCongressPersonType
};

class Officer  
{
public:
	Officer();
	virtual ~Officer();
	virtual void PartyLine() = 0;
protected:
   char  m_Party[20];

};

#endif // !defined(AFX_OFFICER_H__90F13E78_77DD_43C3_AF6F_A43986EBC4BE__INCLUDED_)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -