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
Explain the concept of copy constructor?
Briefly describe a B+ tree. What is bulk loading in it?
Is c++ a difficult language?
Why is "using namespace std;" considered bad practice?
What you know about structures in C++?
Can notepad ++ run c++?
What are proxy objects in c++?
Does c++ have a hash table?
Are strings mutable in c++?
What does std mean in c++?
Show the declaration for a pointer to function returning long and taking an integer parameter.
What is anonymous object in c++?
What is the use of setprecision in c++?
Which is the best c++ compiler for beginners?
Where can I run c++ program?