When A Class Declares An Entire Class As Its Friend?
When A Class Declares An Entire Class As Its Friend? When a class declares an entire class as its friend, the friendship status is reciprocal. That is, each class’s member functions have free access to the other’s private members. By default, when an object is assigned to another, each member of one object is copied