friend

C++ Specific —>

friendclass-name**;**

friendfunction-declarator**;**

The friend keyword allows a function or class to gain access to the private and protected members of a class. See Friend Classes and Friend Functions for examples. Also see class, public, private, protected.

END C++ Specific