What objections to the use of friend functions and classes do some experts give?

What will be an ideal response?


They feel that in the true spirit of object oriented programming all operators
and functions should be member functions of the class. Some argue that friendship
“breaks the encapsulation.”

Computer Science & Information Technology

You might also like to view...

What type of software would you use to check the Internet for new content from the sites to which you have subscribed?

a. Web sniffer b. Locator program c. Feed reader d. XML finder

Computer Science & Information Technology

Access has a Group & Sort feature that simplifies the addition of groups and totals. It can be used in Report view

Indicate whether the statement is true or false

Computer Science & Information Technology

Text, buttons, pictures, or other objects that, when clicked, access other sections of the active document or another file

a. Internal links b. Hyperlinks c. Text links

Computer Science & Information Technology

The privilege ____ can be granted to retrieve data.

A. SELECT B. UPDATE C. RETRIEVE D. READ

Computer Science & Information Technology