Friend Function
A friend function, that is a “friend” of a given class, is a function that is given the same access as methods to private & protected data.
A friend function, that is a “friend” of a given class, is a function that is given the same access as methods to private & protected data.