Question: Consider the below code and choose the correct output: interface Drawable{ void draw (); -} class Rectangle implements Drawable { public void draw ();
Consider the below code and choose the correct output: interface Drawable{ void draw (); -} class Rectangle implements Drawable { public void draw (); -} class Circle implements Drawable{ public void draw() (System.out.println ("drawing circle"); } -} class TestDrawable { public static void main(String args[]) { Circle d-new Circle(); d.draw(); -}} Select one: O a. drawing circle O b. Compilation error O c. Nothing was printed
Step by Step Solution
There are 3 Steps involved in it
The detailed answer for the above question is provided be... View full answer
Get step-by-step solutions from verified subject matter experts
