Our website is made possible by displaying online advertisements to our visitors. Please consider supporting us by whitelisting our website.

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