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 a virtual destructor? Explain the use of it?
Why c++ is called oop?
Can a new be used in place of old mallocq? If yes, why?
Write a program to add three numbers in C++ utilizing classes.
Tell me difference between constant pointer and pointer to a constant.
What is setf in c++?
What is the basic structure of a c++ program?
What is the difference between a pointer and a link in c ++?
write a program that withdrawals,deposits,balance check,shows mini statement. (using functions,pointers and arrays)
Explain how would you handle a situation where you cannot call the destructor of a local explicitly?
How would you use qsort() function to sort an array of structures?
Write a function to find the nth item from the end of a linked list in a single pass.
What is a forward referencing and when should it be used?
Why is c++ awesome?
Explain the use of this pointer?