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 virtual table?
Explain what are mutator methods in c++?
What is a class template?
What are structs in c++?
Which header file allows file i/o with streams a) fileio.h b) iostream.h c) fstream.h
Where and why do I have to put the "template" and "typename" keywords?
Can you pass an array to a function in c++?
What is lambda in c++?
What is const pointer and const reference?
Write a recursive program to calculate factorial in c++.
What are c++ manipulators?
what are the characteristics of Class Members in C++?
Incase of a function declaration, what is extern means?
Is it possible to use a new for the reallocation of pointers ?
How we can differentiate between a pre and post increment operators during overloading?