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 the function of I/O library in C++ ?

1268


What is a breakpoint?

1073


What is cout flush?

1079


What are the c++ access specifiers?

1478


Specify some guidelines that should be followed while overloading operators?

1257


Which c++ operator cannot overload?

1072


Do the parentheses after the type name make a difference with new?

1137


Define the operators that can be used with a pointer.

1122


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

1137


what do you mean by volatile variable?

1106


Explain what happens when a pointer is deleted twice?

1320


What language is a dll written in?

1067


Why use of template is better than a base class?

1251


Explain the concept of copy constructor?

1105


Evaluate the following expression as C++ would do :8 * 9 + 2 * 5 a) 82 b) 79 c) 370 d) list

1048