+ 2

What are VTABLE and VPTR?

What are VTABLE and VPTR? In C++

14th Mar 2019, 5:14 PM
Muhammad Sarfaraz
Muhammad Sarfaraz - avatar
1 Réponse
+ 1
To implement virtual functions, C++ uses a special form of late binding known as the virtual table. ... Each entry in this table is simply a function pointer that points to the most-derived function accessible by that class. Second, the compiler also adds a hidden pointer to the base class, which we will call *__vptr. https://practice.geeksforgeeks.org/problems/what-are-vtable-and-vptr
18th Mar 2019, 9:41 AM
deepak sharma
deepak sharma - avatar