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 are multiple inheritances (virtual inheritance)? What are its advantages and disadvantages?

1058


What is a loop? What are different types of loops in c++?

1134


What is a constructor and how is it called?

1050


Can turbo c++ run c program?

1101


What is pair in c++?

1073


What are different types of loops in c++?

1133


Do class declarations end with a semicolon?

1088


How do you initialize a string in c++?

1005


What is iostream in c++ used for?

1039


Explain what you mean by a pointer.

1107


What is the best c++ ide?

1178


What is a storage class? Mention the storage classes in c++.

1026


What are the four main data types?

1085


What is null pointer and void pointer and what is their use?

1102


Array base access faster or pointer base access is faster?

2309