Possible Duplicate:
Calling virtual functions inside constructors
in C++, An object of class B derived from class A, in C++ the c’tor of A is invoked before the c’tor of B , why ? And what happens if A’s C’tor invokes a virtual function? does it invoke A's virtual function of B's ?