InterviewSolution
Saved Bookmarks
| 1. |
Explain friend functions and their characteristics. |
|
Answer» A friend function is a non-member function and is a friend of a class. It is declared inside a class with the prefix friend and defined outside the class like any other normal function without the prefix friend. This friend function can access private and protected data members if it is a friend function of that class.
|
|