what is the order of initialization for data?

Answer Posted / nilay

all the static memebers are created at the time of class
definition and rest all non static memebers are created
when object is created of that class. member functions are
also create in memory when class is defined. (However only
single copy of static data members and functions is created)

Is This Answer Correct ?    7 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do you save a c++ program?

557


what is a reference variable in C++?

662


Why c++ is created?

576


What is endl c++?

604


What is class syntax c++?

591






What are member functions used in c++?

556


What do you mean by translation unit in c++?

669


Explain friend class?

624


What is the use of seekg in c++?

596


Explain the purpose of the keyword volatile.

633


What is polymorphism in c++? Explain with an example?

607


Mention the ways in which parameterized can be invoked. Give an example of each.

570


What are c++ stream classes?

556


Who made c++?

609


Explain the virtual inheritance in c++.

596