Define a Rectangle class (in Rectangle.java) that implements RectangleInterface. In addition, you should implement the Comparable interface, such that Rectangle objects can be compared by their perimeter. That is, your class signature should be:______.

Respuesta :

Answer and explanation:

When defining a rectangle class that implements rectangleinterface and we implement the comparable interface such that rectangle objects can be compared by their perimeter, our class signature should be the following:

Public class, rectangle implements, rectangleInterface, comparable

ACCESS MORE