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

📄 factory.h

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

#if !defined(AFX_FACTORY_H__F57BCAA2_8AC4_4975_AA80_06C0EFBC6395__INCLUDED_)
#define AFX_FACTORY_H__F57BCAA2_8AC4_4975_AA80_06C0EFBC6395__INCLUDED_

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

#include"Officer.h"
#include "President.h"
#include"AttorneyGeneral.h"
#include"MinorityPartyCongressPerson.h"

class Factory  
{
public:
	Factory();
	virtual ~Factory();
	virtual Officer* CreateOfficer(OfficialType )=0;
	void PartyLine();
protected:
	Officer *m_Officer;
};

#endif // !defined(AFX_FACTORY_H__F57BCAA2_8AC4_4975_AA80_06C0EFBC6395__INCLUDED_)

⌨️ 快捷键说明

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