A friend function is defined outside the class but has the ability to access the _______ members of the class. 

  • static 
  • private 
  • public 
  • mutable
A friend function, although not a member of a class, can access its private and protected members. This provides an external function the capability to interact closely with the internals of the class.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *