1.

How run-time polymorphisms are implemented in C++?(a) Using Inheritance(b) Using Virtual functions(c) Using Templates(d) Using Inheritance and Virtual functionsThis question was addressed to me at a job interview.This interesting question is from OOPs Concept topic in portion Basics Concepts of C++ of C++

Answer»

Correct ANSWER is (d) Using Inheritance and Virtual functions

Easy EXPLANATION - Run-time POLYMORPHISM is IMPLEMENTED using Inheritance and virtual in which object decides which function to call.



Discussion

No Comment Found

Related InterviewSolutions