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

Explain the concept of copy constructor?

986


Briefly describe a B+ tree. What is bulk loading in it?

1254


Is c++ a difficult language?

1044


Why is "using namespace std;" considered bad practice?

1037


What you know about structures in C++?

1007


Can notepad ++ run c++?

1004


What are proxy objects in c++?

1129


Does c++ have a hash table?

944


Are strings mutable in c++?

1089


What does std mean in c++?

1036


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

1064


What is anonymous object in c++?

1035


What is the use of setprecision in c++?

949


Which is the best c++ compiler for beginners?

1016


Where can I run c++ program?

1008