Order of Initialization will be from right to left. Meaning if we have a derived class which got derived from two base class A and B
Class D : class A , Class B. Then members of class B are initialized first and then members of A are initialized. Thanks, Anand On Wed, Aug 4, 2010 at 11:08 AM, Raj N <[email protected]> wrote: > Can someone tell me why the order of initialization in the > initialization list of constructor, the order of declaration of data > members in C++ ? > > -- > You received this message because you are subscribed to the Google Groups > "Algorithm Geeks" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]<algogeeks%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/algogeeks?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en.
