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

📄 shapefactory.hpp

📁 financal instrument pricing using c
💻 HPP
字号:
// ShapeFactory.hpp
//
// Base class for shape factories
//
// (C) Datasim Education BV 1998

#ifndef ShapeFactory_hpp
#define ShapeFactory_hpp

#include "Shape.hpp"
#include "Point.hpp"
#include "Circle.hpp"
#include "Line.hpp"

class ShapeFactory
{
private:
public:
	// Constructors and destructor
	ShapeFactory();								// Default constructor
	ShapeFatory(const ShapeFactory& source);	// Copy constructor
	virtual ~ShapeFactory();					// Destructor

	virtual Point* CreatePoint() = 0;			// Create a point
	virtual Circle* CreateCircle() = 0;			// Create a circle
	virtual Line* CreateLine() = 0;				// Create a line


	// Operators
	ShapeFactory& operator = (const ShapeFactory& source);
};

#endif // ShapeFactory_hpp

⌨️ 快捷键说明

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