What are some reasons for using friend operator overloading?

What will be an ideal response?


Friend operator overloading has the pragmatic advantage of automatic type conversion in all arguments. It actually provides better encapsulation than non-member, non-friend functions because of the accessor functions that must be provided in the later case.

Computer Science & Information Technology

You might also like to view...

One of the fastest ways to switch from editing one method to editing another is to right-click an invocation of that method in the ____ and then choose its name from the ____ that appears. 

A. object tree; object selector B. editing area; context menu C. structure diagram; context menu D. details area; object selector

Computer Science & Information Technology

The 100Base-FX Fast Ethernet transmits data over two multimode ____________________ fiber cables.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

JavaScript allows using the keywords else if together and does not require nested braces around nested structures.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

You cannot update or refresh PivotTable report data

Indicate whether the statement is true or false

Computer Science & Information Technology