public Figure(FigureFactory factory) { circle = factory.CreateCircle(); square = factory.CreateSquare(); }