Multiple choice

Which of the following operators cannot be overloaded with the help of friend function?

  1. =

  2. +

  3. -

  4. >>

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

The assignment operator cannot be overloaded by using friend function because the left-hand argument is responsible for invoking operator function, which is not possible with assignment operator.