This section discusses the declaration of class members with respect to the
information hiding mechanism and how a class can grant functions and classes
access to its nonpublic members by the use of the friend mechanism.
C++ expands the concept of information hiding to include the notion
of having a public class interface but a private implementation. It is
the mechanism for limiting direct access to the internal representation of a
class type by functions in a program.
Related References