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 

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

1 Expert Approved Answer
Step: 1 Unlock

The detailed answer for the above question is provided be... View full answer

blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Computer Network Questions!