Cpp Programming Quiz 48 – Which one of the following options is correct?

Question: Which one of the following options is correct?
[A]. Friend function can access public data members of the class.
[B]. Friend function can access protected data members of the class.[C]. Friend function can access private data members of the class.
[D]. All of the above.

Answer: Option D