Question: Consider the following abstract interface and abstract class. abstract interface CircusShow {abstract public void entrance (); abstract public void act (); abstract public void announcement
Consider the following abstract interface and abstract class. abstract interface CircusShow {abstract public void entrance (); abstract public void act (); abstract public void announcement (); abstract public void performance (); abstract public void exit ();} abstract class circusShow {abstract public void entrance (); abstract public void act (); abstract public void announcement (); abstract public void performance (); abstract public void exit ();} What is the difference between the use of abstract interface and the abstract class? (A) They are used exactly in the same manner in a program. There is no difference. (B) The interface allows polymorphism, while the class cannot be used for polymorphism. (C) The class allows polymorphism, while the interface cannot be used for polymorphism. (D) One uses the reserved word interface and the other uses the reserved word class. (E) Using the interface requires implements and using the class requires extends
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
