Answered Questions

  • What is friend function?

    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.

    MCBod

    • Mar 31st, 2010

    A friend function is a special function that has been granted access to the priovate members of a specific class. The class itself is responsible for declaring the friendship. It is nto affected by in...