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
How to demonstrate the use of a variable?
Explain some examples of operator overloading?
How can I disable the "echo" feature?
What is c++ try block?
How the memory management in vectors are being done. What happens when the heap memory is full, and how do you handle it ?
Is main a class in c++?
What are the general quetions are in DEna bank manager IT/System interviews?
What is auto type c++?
Why do we need function?
How can we access protected and private members of a class?
How can you quickly find the number of elements stored in a static array?
What is a class definition?
What is a lambda function c++?
What size is allocated to the union variable?
What is the difference between cin.read() and cin.getline()?