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

What is Constructor

Answer Posted / amit chauhan

* these are the special member fun" used for automatic
initialization of the object of the class.
* these r defined along with other member fun"of the
class,but the format of the constructor definition is diff.
from the other member fun".
* constructor can take parameters in their parameter list as
needed, called parametrized constructor.
* but they can't return a value,not even void.
* the name of the constructor is same as that of the class.
* constructor r called automatically whenever an object of
the class is created.
* a constructor without any parameter is called default
constructor.
* there is one another type,called copy constructor.compiler
will use the copy constructor whenever you initialize an
instance using values of another instance of same type.

Is This Answer Correct ?    15 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Name the different types of stl containers.

1173


What is the stl, standard template library?

1094


Is there any error below, its a code to delete all entires from a map #include #include iostream.h int main() { int i =0; map TestMap; while(i<3) { TesMap.insert(TestMap::value_type(i,Test)); i++; } typedef map :: iterator mapIter =TestMap.begin(); if(mapIter!=TestMap.end()) { TestMap.erase(mapItrer); ++mapIter; } return 0; }

2392


draw a flowchart that accepts two numbers and checks if the first is divisible by the second.

3383


Who wrote stl?

1143


What is stl in oop?

1218


What is a standard template library (stl)? What are the various types of stl containers?

1170


how to use C++?

2550


How stl is different from the c++ standard library?

1229


What are the various types of stl containers?

1185


Write a C/C++ program to add a user to MySQL. The user should be permitted to only "INSERT" into the given database.

2640


When did c++ add stl?

1234


What are the different types of stl containers?

1150


How do I convert a stl file?

1109


What is a standard template library (stl)?

1133