Question: please fast Java Design an interface named Colorable with a void method named howtoColor(). Design an interface named Areaable with a method named getArea() that
Design an interface named Colorable with a void method named howtoColor(). Design an interface named Areaable with a method named getArea() that returns double. Design a class named Rectangle that implements Colorable, Areaable, and comparable. * Implement howtoColor to display the message "Color the Rectangle". * Implement getArea to calculate and return the rectangle's area. Implement comparelo to compare rectangle based on area. The Rectangle class contains two data fields "sidel" and "side2" with getters and setters methods, a constructor for constructing a Rectangle with a specified sidel and side2, and another no-argument constructor that creates a Rectangle with sidel = 10 and side 2 = 10. Design a driver class that create ban array of five Comparable objects. Then create five random Rectangle objects and store them in the array
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
