001package factory.shape4;
002public class ShapeFactory {
003        private ShapeFactory() {}
004        static public Shape newEllipse(int radius1, int radius2) {
005                return new Ellipse(radius1, radius2);
006        }
007        static public Shape newCircle(int radius) {
008                return new Ellipse(radius, radius);
009        }
010        static public Shape newRectangle(int height, int width) {
011                return new Rectangle(height, width);
012        }
013        static public Shape newSquare(int height) {
014                return new Rectangle(height, height);
015        }
016}