Question: what are vtable and vptr?
Answer: vTable. Virtual Table is a lookup table of function pointers used to dynamically bind the virtual functions to objects at runtime. VPTR. This vtable pointer or _vptr, is a hidden pointer added by the Compiler to the base class. And this pointer is pointing to the virtual table of that particular class.