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

How would you use the functions memcpy(), memset(), memmove()?

1098


Can you declare an array without a size in c++?

1018


Why are pointers used?

1008


If a header file is included twice by mistake in the program, will it give any error?

1053


Which programming language is best to learn first?

1071


Are strings immutable in c++?

1160


If a function doesn’t return a value, how do you declare the function?

1060


what you know about c++?

1158


What is the iunknown interface?

1129


Can a program run without main?

1244


How can you quickly find the number of elements stored in a static array?

1098


How do you print a string on the printer?

1040


What is class definition in c++ ?

1092


Write a program using shift_half( ) function to shift the elements of first half array to second half and vice versa.

1325


Why do we use the using declaration?

1174