For now, simplify things and forget about the existence of classes Ca D.
B
B b(10);
B::B(int). B::B(int) A B - . :
B(int x)
{
b=x;cout<<b;
cout<<"B Constructor\n";
}
:
B(int x) : A()
{
b=x;cout<<b;
cout<<"B Constructor\n";
}
A , .
, :
B(int x) : A(0)
{
b=x;cout<<b;
cout<<"B Constructor\n";
}
A(int) B, B .
B(int x, int y = 0) : A(y)
{
b=x;cout<<b;
cout<<"B Constructor\n";
}