If class B is a friend of class A, this means that class B can access the _______ members of class A. 

  • public 
  • mutable 
  • private 
  • static
When one class is declared as a friend of another class, it means the friend class can access the private and protected members of the class it befriends. It doesn't relate to static or mutable specifically and isn't limited by the public access specifier.
Add your answer
Loading...

Leave a comment

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