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 is class syntax c++?
What is function overloading c++?
Can I create my own functions in c++?
How will you call C functions from C ++ and vice-versa?
explain the reference variable in c++?
How important is c++?
Where can I run c++ program?
Can we change the basic meaning of an operator in c++?
When should I use unitbuf flag?
Name four predefined macros.
What does n mean in c++?
Mention the storage classes in c++.
Do you know about C++ 11 standard?
What is the use of "new" operator?
What is a virtual destructor? Explain the use of it?