0
Which of the following statements about a friend function of a class in C++ is correct?
- AIt is a member function and can be called only through an object of the class
- BIt is inherited by every derived class automatically
- CIt can access only the public members of the class
- DIt is not a member of the class, but it can access the private and protected members of the class
Correct answer: D