Computer Science, asked by Jenishbutani1, 2 months ago

Illustrate using suitable example, why friend function in needed for operator overloading when you can achieve the same using member function ?

Answers

Answered by ItzMissLegend
3

Frind function using operator overloading offers better flexiility to the class. ... When you overload a unary operator you have to pas one argument. When you overload a binary operator you have.

Hope it helps you :)

Similar questions