Why use member classes?
The most important benefit of member classes
- has to do with accessing the
other members of enclosing classes.
The methods of a member class
- have direct access to all the members of the
enclosing classes,
- including private members.