What is Friend Function ? What are their implications on information hiding ?
Answers
Answered by
1
Hello!!Answer is given below:-
A friend function of a class is defined outside that class' scope but it has the right to access all private and protected members of the class. Even though the prototypes for friend functions appear in the class definition, friends are not member functions.
Similar questions