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
what is C++ exceptional handling?
What is an associative container in c++?
What is &x in c++?
What is time_t c++?
What does h mean in maths?
explain the reference variable in c++?
What happens if a pointer is deleted twice?
How to tokenize a string in c++?
What is basic if statement syntax?
What are the advantages of using friend classes?
What is lambda expression c++?
Why is c++ still popular?
Does c++ have a hash table?
What is runtime polymorphism in c++?
What is near, far and huge pointers? How many bytes are occupied by them?