Friend - Nathan-Groves/2143-OOP-Groves GitHub Wiki
Keyword denoting the ability of a class to access data members and functions not defined within itself.
class Hotel {
int occupants = 10;
public:
friend void printOccupants();
};
void printOccupants()
{
cout << occupants;
}