Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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


Please Help Members By Posting Answers For Below Questions

What is a virtual destructor? Explain the use of it?

986


Why c++ is called oop?

1105


Can a new be used in place of old mallocq? If yes, why?

1094


Write a program to add three numbers in C++ utilizing classes.

1106


Tell me difference between constant pointer and pointer to a constant.

1186


What is setf in c++?

1086


What is the basic structure of a c++ program?

1138


What is the difference between a pointer and a link in c ++?

1046


write a program that withdrawals,deposits,balance check,shows mini statement. (using functions,pointers and arrays)

2374


Explain how would you handle a situation where you cannot call the destructor of a local explicitly?

964


How would you use qsort() function to sort an array of structures?

1116


Write a function to find the nth item from the end of a linked list in a single pass.

973


What is a forward referencing and when should it be used?

1162


Why is c++ awesome?

1028


Explain the use of this pointer?

1152