Question: Exercise 1 : Implementing Interfaces Task: Create an interface Drawable with a method draw ( ) . Implement it in two classes: Circle and Square.
Exercise : Implementing Interfaces
Task: Create an interface Drawable with a method draw Implement it in two classes: Circle and
Square. Create instances of both classes and invoke the draw method.
Instructions: After implementing the solution, draw a class diagram representing the classes Drawable,
Circle, and Square. Include associations and any relevant attributes or methods.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
