Multiple choice

Which of the following is not the characteristics of a friend function?

  1. It can be declared both in the private and the public part of the class without altering the meaning.

  2. It is called using the object of the class.

  3. It does not belong to the class.

  4. It is invoked like a normal function.

  5. To access the data members of the class.

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

It is not the characteristics of a friend function, since it is not called using the object of the class.