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.
![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.
<abstract>>>
Circle
«interface>>>
Shape
Rectangle
Square](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F3612bf9e-7f09-44fe-896b-4b8e53ca9f22%2Fc6fa2dcc-2040-49f5-8855-0b0e94d48dfd%2Fm9orcf.bmp&w=3840&q=75)
Transcribed Image Text: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.
<abstract>>>
Circle
«interface>>>
Shape
Rectangle
Square
![«abstract
Circle
«interface»>>
Shape
Rectangle
Square](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2F3612bf9e-7f09-44fe-896b-4b8e53ca9f22%2Fc6fa2dcc-2040-49f5-8855-0b0e94d48dfd%2Ftz413k.bmp&w=3840&q=75)
Transcribed Image Text:«abstract
Circle
«interface»>>
Shape
Rectangle
Square
Expert Solution
![](/static/compass_v2/shared-icons/check-mark.png)
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
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)