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 |
Write about the use of the virtual destructor?
Give 10 points of differences between C & C++.
Which operator cannot be overloaded c++?
What is singleton pattern in c++?
Can member data be public?
Explain what is polymorphism in c++?
What are virtual functions in c++?
What can I safely assume about the initial values of variables which are not explicitly initialized?
What is the Standard Template Library?
What is virtual destructor? What is its use?
What causes a runtime error c++?
Differentiate between the message and method in c++?