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 public, protected, private in c++?
What is object oriented programming (oop)?
Can we declare a base-class destructor as virtual?
What is istream and ostream in c++?
What parameter does the constructor to an ofstream object take?
How come you find out if a linked-list is a cycle or not?
How can you prevent accessing of the private parts of my class by other programmers (violating encapsulation)?
What are arithmetic operators?
the first character in the variable name must be an a) special symbol b) number c) alphabet
What are the uses of typedef in a program?
What is object in c++ wikipedia?
What data encapsulation is in c++?
What are the advantages of c++? Explain
What is encapsulation in c++ with example?
What does the linker do?