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 |
What are iterators in c++?
We use library functions in the program, in what form they are provided to the program?
What header file is needed for exit(); a) stdlib.h b) conio.h c) dos.h
Is sorted c++?
How many types of casting are there in C++? When is a dynamic cast,static_cast,reinterpret cast used?
write a program to add two numbers without using an arithmetic operator.
What are the advantage of using register variables?
What is #include cmath?
What are associate containers?
What is a string example?
What is set in c++?
When do we run a shell in the unix system? How will you tell which shell you are running?