public class SquareFactory extends BoxFactory
Constructor and Description |
---|
SquareFactory() |
Modifier and Type | Method and Description |
---|---|
Shape |
createShape(int width,
int height) |
protected int |
defaultHeight() |
protected int |
defaultWidth() |
String[] |
getShapeNames() |
createShape
protected int defaultWidth()
defaultWidth
in class BoxFactory
protected int defaultHeight()
defaultHeight
in class BoxFactory
public Shape createShape(int width, int height)
createShape
in interface ShapeFactory
createShape
in class BoxFactory
public String[] getShapeNames()
getShapeNames
in interface ShapeFactory
getShapeNames
in class BoxFactory
Copyright © 2013-2015. All Rights Reserved.