what is the order of initialization for data?

Answer Posted / g. maheshwari

The member and base classes are initialized in the order they appear in the class definition, not the order they appear in initialization list.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the methods of exporting a function from a dll?

642


Why is null pointer used?

670


What is the use of "new" operator?

649


How is c++ used in the real world?

565


How can virtual functions in c++ be implemented?

600






How do you import payscale data from non SAP to SAP?is it through LSMW or any other way is there?

3193


How do you sort a sort function in c++ to sort in descending order?

544


What are the two types of comments, and how do they differ?

568


What are the advantages of pointers?

586


How a pointer differs from a reference?

684


what is upcasting in C++?

709


Explain the static member function.

697


What are shallow and deep copy?

585


Explain 'this' pointer and what would happen if a pointer is deleted twice?

594


How would you implement a substr() function that extracts a sub string from a given string?

555