Does polymorphism work if some of the classes in an inheritance hierarchy are abstract?

What will be an ideal response?

Yes. A reference variable can be declared at any level in the inheritance hierarchy. If it is declared to be of an
abstract class, it can still be used to refer to objects of concrete classes.

Computer Science & Information Technology

You might also like to view...

Slides that are adjacent to each other in a presentation are ________ slides

Fill in the blank(s) with correct word

Computer Science & Information Technology

What are the four ways in which a virtual machine session can be ended within VirtualBox?

What will be an ideal response?

Computer Science & Information Technology