public class Square extends Rectangle
| Constructor and Description |
|---|
Square()
Initializes the height of this square to zero.
|
Square(int height)
Initializes this square with the given height.
|
public Square(int height)
height - The height of the square.public Square()
public static Square getRandom()