Question: (The Colorable Interface) Design an interface named Colorable with avoid method named howToColoro. Every class of a colorable object mustimplement the Colorable interface. Modify the
(The Colorable Interface) Design an interface named Colorable with avoid method named howToColoro. Every class of a colorable object mustimplement the Colorable interface. Modify the RectangleFromSimpleGeometricObject class that extends Simple GeometricObject and implements Colorable. Implement howtoColor to display the message "Color inside of rectangle". Write a test program in project4.java that creates an array of five RectangleFromSimpleGeometricObject. For each object in the array, invoke its howToColor method if it is colorable
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
