CS202   7- ‹#›
Friend Classes
•By declaring an entire class as a friend, all members of the friend class have permission to access the protected and private members of the declaring class. This grants special privileges to the friend class' member functions. However, declaring a class to be a friend does not grant any privileges to functions that may be called by member functions of the friend class.
n   class declaring_class {
n     friend class class_name1, //class_name1 is a friend
n                  class_name2; //class_name2 is a friend
n     ...
n   };
n