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

What is a dangling pointer in c++?

668


What are compilers in c++?

623


What is a list c++?

586


What is the use of default constructor?

579


int age=35; if(age>80) {Console.WriteLine("Boy you are old");} else {Console.WrieLine("That is a good age");}

843






What is a buffer c++?

598


What are the benefits of c++?

578


What is a binary file? List the merits and demerits of the binary file usagein C++.

740


If you hear the cpu fan is running and the monitor power is still on, but you did not see anything show up in the monitor screen. What would you do to find out what is going wrong?

558


If you want to share several functions or variables in several files maitaining the consistency how would you share it?

561


What is the main purpose of overloading operators?

597


What is the difference between method overloading and method overriding in c++?

568


In c++, what is the difference between method overloading and method overriding?

609


How c functions prevents rework and therefore saves the programers time as wel as length of the code ?

633


What is type of 'this' pointer? Explain when it is get created?

593