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 setw manipulator in c++?
Draw a flow chart and write a program for the difference between the sum of elements with odd and even numbers. Two dimensional array.
What do nonglobal variables default to a) auto b) register c) static
What is the best book for c++ beginners?
What is pure virtual function?
Which is not a valid keyword a) public b) protected c) guarded
Explain the properties and principles of oop.
What is general form of pure virtual function? Explain?
How to allocate memory dynamically for a reference?
How many ways can a variable be initialized into in C++?
What is setbase c++?
What are the two types of comments?
What is a buffer c++?
What is the equivalent of Pascal's Real a) unsigned int b) float c) char
Discuss the effects occur, after an exception thrown by a member function is unspecified by an exception specification?