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


Please Help Members By Posting Answers For Below Questions

Do we have to use initialization list in spite of the assignment in constructors?

542


What jobs can you get with a c++ certification?

558


What are arrays c++?

584


Write about the scope resolution operator?

591


Write a program which employs Recursion

705






What are c++ templates used for?

587


What is data structure in c++?

631


Describe protected access specifiers?

647


Define token in c++.

681


What do c++ programmers do?

529


Define Virtual function in C++.

595


What is the auto keyword good for in c++?

599


What do you mean by early binding?

573


Define a nested class. Explain how it can be useful.

606


Is it possible to write a c++ template to check for a function's existence?

554