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.
[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