#Senario:
(1) let’s say there is a chain of inheritence like this (the later in turn inherit from the preceding one):
parent->child1->child2->child3->…->child_n;
(2) And so we have data layout of each of them:
parent: DATA
child1: DATA1 = DATA + extra1
child2: DATA2 = DATA1 + extra2 = DATA +extra1,2
...
chidl_n: DATA_n = DATA_n-1 + extra_n = DATA + extra1,2,..., n
(3) And then create a class inherit from them all at once:
myClass: public parent, child1, child2, child3, …, child n;
#Question: What is the data layout of MyClass should be?
A. Just like “chidl_n” above?
B. Different from “child_n” , if so what is it, and how its data are organized in memory?
Please help.