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 general format for a prototype?
Why do we use the using declaration?
What is the use of register keyword with the variables?
Which format specifier is used for printing a pointer value?
what is Loop function? What are different types of Loops?
What is the use of c++ programming language in real life?
How do you differentiate between overloading the prefix and postfix increments?
Explain the scope of resolution operator.
What is the sequence of destruction of local objects?
List the types of polymorphism in c++?
How do you compile the source code with your compiler?
Write a struct time where integer m, h, s are its members?
What is diamond problem in c++?
Which software is used for c++ programming?
What does iomanip mean in c++?