Answers

Question and Answer:

  Home  C++ Virtual Functions

⟩ What is Dynamic Binding?

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.

 247 views

More Questions for you: