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 / bhuvan singh

a defaulft constructor is created that takes no parameters
and does nothing.that takes no arguments but sets up your
object as required.

A defaulft constructor ,but by no convention so is any
constructor that takes parameters ,this is can be a bit confusing ,but is usually clear from context which one is meant.


A default constructor is not made by the compiler.so if u want a constructor that takes no parameters ,and u,ve created any others constructors ,u must make the default constructor urself.

"that if u make any constructor at all."

Is This Answer Correct ?    1 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the advantage of an external iterator.

978


Can we use clrscr in c++?

1024


Is it possible for a member function to delete the pointer, named this?

1085


What is an inline function in c++?

1070


What is the role of C++ shorthand's?

1224


Differentiate between a pointer and a reference with respect to c++.

1182


What is class in c++ with example?

1129


What does h mean in maths?

1106


Can comments be longer than one line?

1020


What are features of c++?

1102


What do you mean by a template?

1022


Is java a c++?

976


What is the benefit of encapsulation?

1018


What is the use of pointer in c++ with example?

981


Which compiler does turbo c++ use?

1023