. Where there are virtual functions and real inheritance: location distribution in the storage area: pointing to the virtual function table (both the parent class and its own virtual functions are in place, and the parent class is in front) pointer + parent class variable + Child class variable behind
In the case of virtual functions and real inheritance (in the case of heavy loads): The storage location distribution is similar to the above: pointing to the virtual function table (both the parent class and its own virtual functions are in it, in addition, the parent class is in the front, and the Function Location of the overloaded parent class is replaced by the quilt function name. See the picture on the right.) the pointer + parent class variable is in the front + subclass variable is in the back
With virtual functions + real inheritance (ONE): The location distribution of the storage area is similar to the above: pointer to the virtual function table itself + 0 Separator of one byte + sub-class member variable in front ++The parent class member variable is behind