The methods defined in the Rectangle class are summarized in the following table.
| Method | Description |
|---|---|
| copy | Copies the coordinates of the specified rectangle |
| display | Returns a string containing the left, top, right, and bottom coordinates of the rectangle |
| isEmpty | Specifies if the rectangle is empty |
| set | Sets the coordinates of the rectangle |