when an object of type A is created, the constructors of all member variables will be called before A's constructor is called. try it.
class B
{
public:
B()
{
printf("B\n");
}
};
class A
{
public:
A()
{
printf("A\n");
}
B b;
};
main()
{
A a;
}
the output is : B A -c
A | B - it's not a choice.
ThumbNailer