Hey OP, is this what you were trying to go for?
O_o

That code almost certainly does not do what you think.

The `B' constructur is not redifined by nor overloaded as the `A' construct. The `B' constructor just calls the `A' constructor.

The `B::A(15);' line has nothing whatsoever to do with the `test' object which is of type `B'. The `B::A(15);' line just creates a temporary of type `A'.

Soma