Binary operator overloading with member function - Operator Overloading

Q.  In case of binary operator overloading with member function, which of following statement should be taken into consideration?
- Published on 17 Jul 15

a. Right hand operand must be object.
b. Left hand operand must be object.
c. Both the operands must be objects.
d. All of these should be considered.

ANSWER: Left hand operand must be object.
 

    Discussion

  • Ramesh   -Posted on 24 Oct 15
    While overloading the binary operator with member function Left hand operand must be object

Post your comment / Share knowledge


Enter the code shown above:

(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)