On 29 Mar 2006 06:40:54 -0800,
kk****@yahoo.com wrote:
Does ANSI C++ guarantee that a base class
constructor will complete before the derived class contructor executes?
For regular inheritance (public, protected or private) the answer is
yes. For virtual inheritance, the rules are a little different, but in
most cases also yes. The base class constructor in a virtual
inheritance hierarchy is invoked by the most-derived class
constructor, whereas otherwise it is invoked by the constructor of the
next class in its hierarchy.
This should also be covered in the FAQ link that Phlip posted.
--
Bob Hairgrove
No**********@Home.com