Home »
MCQs »
OOPs MCQs
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?
- Friend Function
- Pure Virtual Function
- Static Function
- 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.