I want this to work
Code:class A { int basedata; }; class B { int otherdata; };
now if it included an instance of class A inside class B.
then i could do this to get that base data variable.Code:class B { int otherdata; A base; };
What I want to do is, do something to the B class so this statement will work. What do i need to do to make B have the members of A?Code:B.base.basedata = 0;
Code:B.basedata = 0;