Transfer from https://blog.csdn.net/xiaxzhou/article/details/76576516
Said very thorough understanding virtual pointer for
Members of the class of functions:
Summary: Ordinary Inheritance: no new sub-class virtual function table, but his own father put on the virtual function virtual function table
Virtual Inheritance: subclasses will be a vbptr
A new sub-class virtual function table, to put their own virtual function, virtual function table pointer of the parent class will inherit
Class data members:
Summary: Ordinary Inheritance: very simple. . .
Virtual inheritance: consider the good diamond inheritance
Aspects of the issue size, alignment purely on memory and other considerations