Google News
logo
CPP - Quiz(MCQ)
What is dynamic binding in C++?
A)
The process of linking the actual code with a procedural call during run-time
B)
The process of linking the actual code with a procedural call during compile-time
C)
The process of linking the actual code with a procedural call at any-time
D)
All of the above

Correct Answer :   The process of linking the actual code with a procedural call during run-time


Explanation : C++ provides facility to specify that the compiler should match function calls with the correct definition at the run-time; this is called dynamic binding or late binding or run-time binding. Dynamic binding is achieved using virtual functions. Base class pointer points to derived class object.

Advertisement