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 Question | Next Question |
Explain friend function? | Explain advantages of using friend classes? |