public class ShapeFactory extends java.lang.Object
Modifier | Constructor and Description |
---|---|
private |
ShapeFactory() |
Modifier and Type | Method and Description |
---|---|
static Shape |
newCircle(int radius) |
static Shape |
newEllipse(int radius1,
int radius2) |
static Shape |
newRectangle(int height,
int width) |
static Shape |
newSquare(int height) |
private ShapeFactory()
public static Shape newEllipse(int radius1, int radius2)
public static Shape newRectangle(int height, int width)