Define a Rectangle class in Rectangle.java that implements RectangleInterface. In addition, implement a Comparable inter
Posted: Thu Jul 14, 2022 2:18 pm
Define a Rectangle classin Rectangle.java thatimplements RectangleInterface. In addition, implementa Comparable interface, suchthat Rectangle objects can be compared bytheir perimeter.
Finally, you must havea constructor that takes in doubles ofthe length and width as parameters:
As is implied by the parameters to the constructor, yourinstance variables should also be doubles.
Finally, you must havea constructor that takes in doubles ofthe length and width as parameters:
As is implied by the parameters to the constructor, yourinstance variables should also be doubles.