Skip to content
Related Articles
Get the best out of our app
GeeksforGeeks App
Open App
geeksforgeeks
Browser
Continue

Related Articles

UGC-NET | UGC NET CS 2016 Aug – II | Question 14

Improve Article
Save Article
Like Article
Improve Article
Save Article
Like Article

In C++, polymorphism requires:
(A) Inheritance only
(B) Virtual functions only
(C) References only
(D) Inheritance, Virtual functions and references


Answer: (D)

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

My Personal Notes arrow_drop_up
Last Updated : 11 Apr, 2018
Like Article
Save Article
Similar Reads