home *** CD-ROM | disk | FTP | other *** search
- If you are designing a class that may be used as a base for
- derived classes, try not to depend on friend functions. Such use
- of friends can undermine the reuseability of your code. Here, the
- Athlete class is the base class of HockeyStar. The Athlete
- class is a friend of the Customer class. Member functions of an
- Athlete object can access the members of the Customer class, but
- member functions of a HockeyStar object cannot.
-