Vidyalelo
C++ Programming · Q19

Classes and Objects in C++

Programming · C++ Programming · question 19

Q19

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

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

Answer: Option C

Solution

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