Which operator among the following must be overloaded using the friend function?

Which operator among the following must be overloaded using the friend function? Correct Answer Both << and >> operators

In some cases it is mandatory to use the friend functions for overloading the operators. Here both the > operators must be overloaded using friend function because the left operand is object of some other class and the right operand is usually of some different type.

Related Questions

Which operator among the following can be overloaded using both friend function and member function?