shape.hpp

来自「financal instrument pricing using c」· HPP 代码 · 共 30 行

HPP
30
字号
// Shape.hpp
//
// Base class for shapes.
//
// 5-6-1998   MB  Started
//
// (C) Datasim Education BV 1998

#ifndef Shape_hpp
#define Shape_hpp

#include "Common.hpp"
#include "Angle.hpp"

class Shape
{
public:
	// Constructors and destructor
	Shape();							// Default constructor
	Shape(const Shape& source);			// Copy constructor
	virtual ~Shape();					// Destructor
	
	// Special copy function to create a copy of a shape when you only have a shape pointer
	virtual Shape* Clone() const=0;		// Create a copy of the shape

	// Operator overloading
	Shape& operator = (const Shape& source);	// Assignment operator
};

#endif // Shape_hpp

⌨️ 快捷键说明

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