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
How come you find out if a linked-list is a cycle or not?
Explain the difference between new() and malloc() in c++?
Is multimap sorted c++?
What is a catch statement?
What is using namespace std in cpp?
What is virtual destructor ans explain its use?
Are vectors faster than arrays?
What is encapsulation in c++ with example?
What do you understand by a pure virtual member function?
When you overload member functions, in what ways must they differ?
What can I use instead of namespace std?
What do you mean by function and operator overloading in c++?
What are the data types in c++?
What is the difference between global int and static int declaration?
What is c++ code?