UGC-NET | UGC NET CS 2016 Aug – II | Question 14
In C++, polymorphism requires:
(A) Inheritance only
(B) Virtual functions only
(C) References only
(D) Inheritance, Virtual functions and references
Explanation: Basically polymorphism means having many forms. In C++, polymorphism requires Inheritance, Virtual functions and references, because polymorphism occurs when there is a hierarchy of classes and they are related by inheritance which include virtual functions and references.
So, option (D) is correct.
Quiz of this Question