📄 consolefactory.hpp
字号:
// ConsoleFactory.hpp
//
// Shape factory that creates shapes by querying the user using the console
//
// (C) Datasim Education BV 2001
#ifndef CONSOLEFACTORY_HPP
#define CONSOLEFACTORY_HPP
#include "ShapeFactory.hpp"
class ConsoleFactory: public ShapeFactory
{
private:
public:
// Constructors and destructor
ConsoleFactory(); // Default constructor
ConsoleFactory(const ConsoleFactory& source); // Copy constructor
virtual ~ConsoleFactory(); // Destructor
Point* CreatePoint(); // Create a point
Circle* CreateCircle(); // Create a circle
Line* CreateLine(); // Create a line
// Operators
ConsoleFactory& operator = (const ConsoleFactory& source);
};
#endif // ShapeAscii_hpp
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -