How is Late Binding Implemented in C++?

By Priyanshu Vaish|Updated : June 29th, 2022

How is Late Binding Implemented in C++?

  1. Using C++ tables
  2. Using Virtual tables
  3. Using Indexed virtual tables
  4. Using polymorphic tables

Answer: B. Using virtual tables

Late Binding is Implemented in C++ using virtual tables.

Solution

The virtual table, a unique kind of late binding, is used to implement virtual functions in C++. The virtual table is a lookup table of functions that are used to dynamically or late bind function calls. Other names for the virtual table include "vtable", "virtual function table", "virtual method table", and "dispatch table".

Therefore, the late binding is implemented in C++ using virtual tables.

☛ Related Questions:

Comments

write a comment

Follow us for latest updates