The Rectangle2D class describes a rectangle
defined by a location (x,y) and dimension
(w x h) .
This class is only the abstract superclass for all objects that
store a 2D rectangle.
The actual storage representation of the coordinates is left to
the subclass.
Rectangle2Dclass describes a rectangle defined by a location (x,y) and dimension (w x h) .This class is only the abstract superclass for all objects that store a 2D rectangle. The actual storage representation of the coordinates is left to the subclass.