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

Describe friend function & its advantages.

1173


How the endl and setw manipulator works?

1054


What are friend classes? What are advantages of using friend classes?

1139


C is to C++ as 1 is to a) What the heck b) 2 c) 10

1112


What is encapsulation in c++?

1371


What is the prototype of printf function?

1234


What apps are written in c++?

1139


Do vectors start at 0?

1045


What are containers in c++?

1031


What gives the current position of the put pointer?

1042


What is difference between rand () and srand ()?

1149


Why can’t you call invariants() as the first line of your constructor?

1085


How will you call C functions from C ++ and vice-versa?

1191


How is data hiding achieved in c++?

1142


How to access a variable of the structure?

1137