Vidyalelo
C++ Programming · Q120

Introduction to C++

Programming · C++ Programming · question 120

Q120

Which of the following is correct?

A.
Friend functions can access public members of a class
B.
Friend functions can access protected members of a class
C.
Friend functions can access private members of a class
D.
All of the mentioned
Answer

Answer: Option D

Solution

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