S
stasgrom
Guys, I have this situation: the class C is defined as follow:
class C: public A, public B {...};
Now when I create an object of class C, I can see that the compiler (VS
8.0) decides to layout the memory of this object so that the fields of
class B come before the fields of class A. I always thought the layout
is defined by the order of inheritance. Was I wrong?
Thanks.
class C: public A, public B {...};
Now when I create an object of class C, I can see that the compiler (VS
8.0) decides to layout the memory of this object so that the fields of
class B come before the fields of class A. I always thought the layout
is defined by the order of inheritance. Was I wrong?
Thanks.