What is a conversion constructor?
Answer / 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 |
without if else statement can be written ah
What is the difference between an external iterator and an internal iterator?
What is the most powerful coding language?
What is the difference between a shallow copy and a deep copy?
What are the main differences between C and C++?
Write a program which uses Command Line Arguments
How do you declare A pointer to function which receives an int pointer and returns a float pointer
What is optimization in c++? when using volatile.optimization is not possible..what does this mean?
What is endl c++?
Explain the differences between list x; & list x();.
How do you initialize a string in c++?
Can I learn c++ as my first language?