Multiple choice

Which of the following is a non-member function of a class that has access to both private and protected members of a class?

  1. Inline function

  2. Overloaded function

  3. Operator function

  4. Friend function

  5. Simple function

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

This is a non-member function of a class that has access to both private and protected members of a class.