Which function is not a member of a class but still has access to private data of a class?

88. Which function is not a member of a class but still has access to private data of a class?

  1. Friend Function
  2. Pure Virtual Function
  3. Static Function
  4. Abstract Function

Answer: A) Friend Function

Explanation:

The friend function is not a member of a class but still has access to the private data of a class.

Comments and Discussions!

Load comments ↻






Copyright © 2024 www.includehelp.com. All rights reserved.