Respuesta :

Functions that are not members of a class are called "friend" functions.


A friend function of a class is characterized outside that class' extension yet it has the privilege to get to all private and ensured individuals from the class. Despite the fact that the models for companion capacities show up in the class definition, friends are not part functions.


A friend can be a function, work layout, or part work, or a class or class format, in which case the whole class and the majority of its individuals are friends.

Friend functions can get to private and secured individuals from a class question go into the function.