Difference between Constructors and static constructors?
Answer Posted / ganagdhara c
the normal constructor is use to initialize the data elements of the objects which are either static are non static elements where as thee static constructors are use to initialize the static data elements in the class these static data elements are shared by all the objects of the class type these are created when the first object of the class type was created.
| Is This Answer Correct ? | 1 Yes | 1 No |
Post New Answer View All Answers
What is the function of I/O library in C++ ?
What is a breakpoint?
What is cout flush?
What are the c++ access specifiers?
Specify some guidelines that should be followed while overloading operators?
Which c++ operator cannot overload?
Do the parentheses after the type name make a difference with new?
Define the operators that can be used with a pointer.
How can you quickly find the number of elements stored in a static array?
what do you mean by volatile variable?
Explain what happens when a pointer is deleted twice?
What language is a dll written in?
Why use of template is better than a base class?
Explain the concept of copy constructor?
Evaluate the following expression as C++ would do :8 * 9 + 2 * 5 a) 82 b) 79 c) 370 d) list