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
What is a dangling pointer in c++?
What are compilers in c++?
What is a list c++?
What is the use of default constructor?
int age=35; if(age>80) {Console.WriteLine("Boy you are old");} else {Console.WrieLine("That is a good age");}
What is a buffer c++?
What are the benefits of c++?
What is a binary file? List the merits and demerits of the binary file usagein C++.
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?
If you want to share several functions or variables in several files maitaining the consistency how would you share it?
What is the main purpose of overloading operators?
What is the difference between method overloading and method overriding in c++?
In c++, what is the difference between method overloading and method overriding?
How c functions prevents rework and therefore saves the programers time as wel as length of the code ?
What is type of 'this' pointer? Explain when it is get created?