Question: ILSE 8 Design and implen Design a Shape class W with a howToColor( me in and implement classes. (21 points) class with an empty draw()

ILSE 8 Design and implen Design a Shape class W with a howToColor( me in and implement classes. (21 points) class with an empty draw() method and a Colorable interface olor method, then create two classes Rectangle and Circle that 4/5 d. These three classes should inherit from Shape and override the dra m Shape and override the draw method implement the following points: 1. For Shape class (6 points): 1.1 implement the Colorable interface, which writes" I am coloring..." 1.2 override how ToColor method which w 2. For Rectangle class(6 points): 2.1 Two double data fields named w 2.2 A no-arg constructor e data fields named width and height SA constructor that creates a rectangle with the specified width and height 2.4 A method named getArea( that returns the area of this rectangle. 2.5 The draw() method writes "I am designing a Rectangle.' on the screen 3. For Circle class(6 points):: 3.1 One double data field named radius 3.2 A constructor creates a circle with the specified radius 3.3 Setters and getters methods for radius 3.4 A method named getPerimeter that returns the perimeter of this 3.5 The draw method writes "I am designing a Circle." on the screen
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
