Rectangle *ShapeFactory::MakeRectangle( int x, int y, int w, int h )
{
return new Rectangle( x, y, w, h );
}
Ellipse *ShapeFactory::MakeEllipse( int x, int y, int w, int h )
{
return new Ellipse( x, y, w, h );
}
Rectangle *DottedShapeFactory::MakeRectangle( int x, int y, int w, int h )
{
return new DottedRectangle( x, y, w, h );
}
Ellipse *DottedShapeFactory::MakeEllipse( int x, int y, int w, int h )
{
return new DottedEllipse( x, y, w, h );
}