A friend function is one that is not a member of a class but has access to the private and protected members of the class. Friend functions are not class members; they are typical external functions with unique access privileges.
Vishalini.R Answered question June 27, 2023
