public
Rectangle
(
double
width,
double
height)
Creates a new instance of Rectangle with the given size.
Parameters:
width
width of the rectangle
height
height of the rectangle
Diagram:
Shape