Original Post
I have 3 classes A, B, C
B inherits from A and C inherits from B
I create an instance of class C and in the constructor I call the constructor of class B manually B::B so that the data in class B will get initialised properly. However the data in class B does not get initialised at all.
My code looks like this :
C::C( )
{
// call the base constructor
B::B();
}
I have debugged and the call to B''s constructor takes place but the data from B inside class C is still garbage. What am i doing wrong?
--{You fight like a dairy farmer!}