Vidyalelo
C++ Programming · Q14

Object Oriented Programming in C++

Programming · C++ Programming · question 14

Q14

What is the purpose of friend functions in C++?

A.
To allow access to private and protected members of a class from outside the class
Answer
B.
To create multiple instances of a class
C.
To hide the implementation details of a class
D.
To define functions within a class

Answer: Option A

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board