Set of operators may not be overloaded using friend operator function - Operator Overloading

Q.  Using friend operator function, following perfect set of operators may not be overloaded.
- Published on 17 Jul 15

a. = , ( ) , [ ] , ->
b. <<, = = , [ ] , >>
c. ?, = , ( ) , ++
d. None of these

ANSWER: = , ( ) , [ ] , ->
 

    Discussion

  • Ramesh   -Posted on 26 Oct 15
    You cannot overload = , ( ) , [ ] , -> operator using friend function. Most of the operator you can overload such as unary, binary operator etc.

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.)