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 size of string in c++?

924


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

980


Can I create my own functions in c++?

1036


Do vectors start at 0 c++?

973


When you overload member functions, in what ways must they differ?

985


What is fflush c++?

947


What are pointer-to-members? Explain.

1063


What are the advantages of using pointers in a program?

1090


Is string an object in c++?

1102


What is java and c++?

1086


How can you link a c++ program to c functions?

1058


What is decltype c++?

944


What is capacity in vector in c++?

928


Explain selection sorting. Also write an example.

980


What is virtual base class?

999