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 are the benefits of pointers?
What is the type of this pointer in c++?
What is difference between c++ and c ++ 14?
Is map sorted c++?
Why c++ is created?
Describe the syntax of single inheritance in C++?
What is the need of a destructor? Explain with the help of an example.
If we want that any wildcard characters in the command line arguments should be appropriately expanded, are we required to make any special provision? If yes, which?
Which software is best for coding?
Write about an iterator class?
To which numbering system can the binary number 1101100100111100 be easily converted to?
Explain overriding.
If dog is a friend of boy, and terrier derives from dog, is terrier a friend of boy?
What is the main use of c++?
What are the sizes and ranges of the basic c++ data types?