C++ Friend Question:

What are friend classes?

C++ Friend Interview Question
C++ Friend Interview Question

Answer:

The friend function is a ‘non member function’ of a class. It can access non public members of the class. A friend function is external to the class definition.


Previous QuestionNext Question
Explain friend function?Explain advantages of using friend classes?