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 setf in c++?
How to give an alternate name to a namespace?
Is overriding possible in c++?
What is a c++ class?
To what does “event-driven” refer?
What are the differences between java and c++?
How long will it take to learn programming?
What is the identity function in c++? How is it useful?
What is the function to call to turn an ascii string into a long?
Which is better turbo c++ or dev c++?
What are the various oops concepts in c++?
What is the best ide for c++?
What is the difference between reference and pointer?
What is a .h file c++?
What are the rules for naming an identifier?