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.
Loading...
Related Quiz
- What does the struct keyword allow a C++ programmer to do?
- What potential issue might arise when using switch-case statements with enumerated types?
- When a class B is inherited publicly from a class A, then the protected members of class A will become _______ in class B.
- How does the virtual base class resolve the diamond problem in C++?
- What happens if an exception occurs in a destructor in C++?