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...

why all c++ program must have default constructor?

Answer Posted / varsha

Default constructor and destructor gice compilers a place to
hide the code such as invocation of contructors of Base
classes and non static data members.

Is This Answer Correct ?    0 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is a friend function in c++?

1599


Can we distribute function templates and class templates in object libraries?

1065


Write a corrected statement in c++ so that the statement will work properly. if (4 < x < 11) y=2*x;

2009


On throwing an exception by the animal constructor in p = new animalq, can memory leak occur?

1120


What is the use of function pointer?

1010


Show the declaration for a pointer to function returning long and taking an integer parameter.

1123


What is command line arguments in C++? What are its uses? Where we have to use this?

1255


What is a type library?

1101


Which one is better- macro or function?

1182


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

1078


How do I run a program in notepad ++?

1091


What is the use of :: operator in c++?

1114


Why struct is used in c++?

1112


Explain the properties and principles of oop.

1013


Explain class invariant.

1049