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
How would you use the functions memcpy(), memset(), memmove()?
Can you declare an array without a size in c++?
Why are pointers used?
If a header file is included twice by mistake in the program, will it give any error?
Which programming language is best to learn first?
Are strings immutable in c++?
If a function doesn’t return a value, how do you declare the function?
what you know about c++?
What is the iunknown interface?
Can a program run without main?
How can you quickly find the number of elements stored in a static array?
How do you print a string on the printer?
What is class definition in c++ ?
Write a program using shift_half( ) function to shift the elements of first half array to second half and vice versa.
Why do we use the using declaration?