C++ | Operator Overloading | Question 6
Predict the output
(A) Compiler Error
Explanation: Note that the class B has as conversion operator overloaded, so an object of B can be converted to that of A.
Also, class A has a constructor which can be called with single integer argument, so an int can be converted to A.
Quiz of this Question