30 lines
450 B
C++
30 lines
450 B
C++
#include "interface.h"
|
|
|
|
class ShapeMaker
|
|
{
|
|
public:
|
|
ShapeMaker()
|
|
{
|
|
this->circle = new Circle();
|
|
this->square = new Square();
|
|
this->rectangle = new Rectangle();
|
|
}
|
|
void drawCircle()
|
|
{
|
|
circle->draw();
|
|
}
|
|
void drawSquare()
|
|
{
|
|
square->draw();
|
|
}
|
|
void drawRectangle()
|
|
{
|
|
rectangle->draw();
|
|
}
|
|
|
|
private:
|
|
Shape *circle;
|
|
Shape *square;
|
|
Shape *rectangle;
|
|
};
|