Google News
logo
CPP - Quiz(MCQ)
How run-time polymorphisms are implemented in C++?
A)
Using Virtual functions
B)
Using Inheritance and Virtual functions
C)
Using Inheritance
D)
Using Templates

Correct Answer :   Using Inheritance and Virtual functions


Explanation : Run-time polymorphism is implemented using Inheritance and virtual in which object decides which function to call.

Advertisement