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 use of data hiding?
What is the difference between strcpy() and strncpy()?
What's the hardest coding language?
Is java made in c++?
Do you know about latest advancements in C++ ?
Describe the advantage of an external iterator.
What are static member functions?
Which bitwise operator is used to check whether a particular bit is on or off?
What is a float in c++?
Write about the members that a derived class can add?
Explain the different access specifiers for the class member in c++.
Which format specifier is used for printing a pointer value?
How const int *ourpointer differs from int const *ourpointer?
what are the iterator and generic algorithms.
What are friend classes? What are advantages of using friend classes?