Get premium membership and access questions with answers, video lessons as well as revision papers.

What is friend function?

      

What is friend function?

  

Answers


joyce
As the name suggests, the function acts as a friend to a class. As a friend of a class,
it can access its private and protected members. A friend function is not a member of
the class. But it must be listed in the class definition.
joyce2 answered the question on November 21, 2017 at 14:10


Next: Study the diagram below and answer the following questions (a) Identify the diagram (b) List two advantages of the structure in the diagram above
Previous: Which recursive sorting technique always makes recursive calls to sort subarrays that are about half size of the original array?

View More Computer Science Questions and Answers | Return to Questions Index


Learn High School English on YouTube

Related Questions