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.

icon
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
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
Transcribed Image Text:«abstract Circle «interface»>> Shape Rectangle Square
Expert Solution
steps

Step by step

Solved in 3 steps

Blurred answer