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
What are multiple inheritances (virtual inheritance)? What are its advantages and disadvantages?
What is a loop? What are different types of loops in c++?
What is a constructor and how is it called?
Can turbo c++ run c program?
What is pair in c++?
What are different types of loops in c++?
Do class declarations end with a semicolon?
How do you initialize a string in c++?
What is iostream in c++ used for?
Explain what you mean by a pointer.
What is the best c++ ide?
What is a storage class? Mention the storage classes in c++.
What are the four main data types?
What is null pointer and void pointer and what is their use?
Array base access faster or pointer base access is faster?