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 size of string in c++?
What is the use of pointer in c++ with example?
Can I create my own functions in c++?
Do vectors start at 0 c++?
When you overload member functions, in what ways must they differ?
What is fflush c++?
What are pointer-to-members? Explain.
What are the advantages of using pointers in a program?
Is string an object in c++?
What is java and c++?
How can you link a c++ program to c functions?
What is decltype c++?
What is capacity in vector in c++?
Explain selection sorting. Also write an example.
What is virtual base class?