C++ Virtual Functions Question: Download C++ Virtual Functions PDF

What is Dynamic Binding?

Tweet Share WhatsApp

Answer:

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. And a function is declared virtual in base class, then the matching function is identified at run-time using virtual table entry.

Download C++ Virtual Functions PDF Read All 30 C++ Virtual Functions Questions
Previous QuestionNext Question
What is Static Binding?Do you know the use of Vtable?