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 a conversion constructor?

Answer Posted / munendra kumar

A constructor that accepts one argument of a different type.

The compiler uses this idiom as one way to infer conversion rules for your class. A constructor with more than one argument and with default argument values can be interpreted by the compiler as a conversion constructor when the compiler is looking for an object of your constructor's type and sees an object of the type of the constructor's first argument.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is class syntax c++?

1154


What is function overloading c++?

1076


Can I create my own functions in c++?

1083


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

1140


explain the reference variable in c++?

1060


How important is c++?

980


Where can I run c++ program?

1064


Can we change the basic meaning of an operator in c++?

1114


When should I use unitbuf flag?

1011


Name four predefined macros.

1040


What does n mean in c++?

1160


Mention the storage classes in c++.

1078


Do you know about C++ 11 standard?

1084


What is the use of "new" operator?

1127


What is a virtual destructor? Explain the use of it?

987