Multiple choice

Which of the following is not a visibility mode in C++?

  1. Private

  2. Protected

  3. Public

  4. Friend

  5. Both private and public

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

This is not a visibility mode in C++ instead it is a type of function that can act as friend to any class and access its data members.