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

please fast
Java  please fast Java Design an interface named Colorable with a void

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!