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 the copy-and-swap idiom?
Differentiate between a constructor and a method in C++.
Which software is used to run c++ program?
What does int * mean in c++?
Are iterators pointers?
Explain static and dynamic memory allocation with an example each.
Which is not an ANSII C++ function a) sin() b) tmpnam() c) kbhit()
Is arr and &arr are same expression for an array?
Define virtual constructor.
Explain the differences between list x; & list x();.
What is a unnitialised pointer?
What are containers in c++?
What is searching?
Explain pass by value and pass by reference.
Is vector a class in c++?