Write the definition of classes and interfaces in the given diagram using following details: a) Interface shape has a method draw(). b) Override the method draw() in all subclasses. c) Define a non-abstract method fillColor() in Circle class.
Write the definition of classes and interfaces in the given diagram using following details: a) Interface shape has a method draw(). b) Override the method draw() in all subclasses. c) Define a non-abstract method fillColor() in Circle class.
Related questions
Question
Write the definition of classes and interfaces in the given diagram using following details:
a) Interface shape has a method draw().
b) Override the method draw() in all subclasses.
c) Define a non-abstract method fillColor() in Circle class.
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 3 steps