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

Why main function is special in c++?

666


Can I learn c++ without c?

601


What happens when you make call 'delete this;'?

603


Specify different types of decision control statements?

352


What does 7/9*9 equal ? a) 1 b) 0.08642 c) 0

578






Are c and c++ similar?

582


What does the nocreate and noreplace flag ensure when they are used for opening a file?

676


declare an array of structure where the members of the structure are integer variable float variable integer array char variable access all elements of the structure using dot operator and this pointer operator

1739


Write a Program for dynamically intialize a 2 dimentional array. Eg:5x20, accept strings and check for vowels and display the no.finally free the space allocated .

678


When should you use global variables?

626


What is the importance of mutable keyword?

579


What is operator overloading in c++ example?

648


Does c++ have finally?

565


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

566


Is c++ built on c?

559