35
I'm fairly new to C++, and I'm not sure about this one. Have a look at the following example which sums up my current problem.
class Foo
{
//stuff
};
class Bar
{
Foo foo;
};
So Bar constains a full Foo object, not just a reference or pointer. Is this object initialized by its default constructor ? Do I need to explicitly call its constructor, and if so, how and where ?
Thanks.