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

Does a derived class inherit or doesn't inherit?

620


What is flush () in c++?

584


How the delete operator differs from the delete[]operator?

648


You run a shell on unix system. How would you tell which shell are you running?

663


What is the this pointer?

637






How is static data member similar to a global variable?

587


What is the need of a destructor? Explain with the help of an example.

570


What is the use of "new" operator?

661


What is an accessor in c++?

622


What are the c++ access specifiers?

777


Does c++ support exception handling?

600


How can you tell what shell you are running on unix system?

647


What are c++ redistributables?

564


What information can an exception contain?

670


What is an adjust field format flag?

648