Friends
A friend is a function or class that is permitted to access the internal state of another class.
class box { public: box (int v) : value(v) { } private: int value; // declare plus function as friend friend int plus(const box &, const box &);};