Google News
logo
CPP - Quiz(MCQ)
How can one implement the run-time Polymorphism in the C++ programming language?
A)
By using the Template
B)
By using only the virtual functions
C)
By using the concepts of inheritance
D)
By using both the virtual functions and inheritance

Correct Answer :   By using both the virtual functions and inheritance


Explanation : In C++, one can implement the run-time Polymorphism by using the virtual functions and inheritance where the object decides which function to call.

Advertisement