public class FactoryPatternApp{
	public static void main(String[] args) {
		ShapeFactory shapeFactory = new ShapeFactory();

		Shape shape1 = shapeFactory.getShape("Circle");
		shape1.draw();
		shape1.howManySides();

		Shape shape2 = shapeFactory.getShape("Rectangle");
		shape2.draw();
		shape2.howManySides();

		Shape shape3 = shapeFactory.getShape("Square");
		shape3.draw();
		shape3.howManySides();

	}
}