what is the order of initialization for data?
Answer Posted / avi
Data members of a class are initialized in the order they
are declared in class. in case class is derived from some
base class then the base class will be initialized first
followed by the derived class.
| Is This Answer Correct ? | 14 Yes | 3 No |
Post New Answer View All Answers
How does c++ structure differ from c++ class?
Can class objects be passed as function arguments?
How can you quickly find the number of elements stored in a static array?
What is switch case in c++ syntax?
Define vptr.
Define whitespace in C++.
What is the use of endl?
List the merits and demerits of declaring a nested class in C++?
What do you mean by funtion prototype?
Is swift a good first language?
What is the difference between global int and static int declaration?
What is the purpose of templates in c++?
What is guard code in c++?
What is a constructor and how is it called?
What is a storage class used in c++?