home *** CD-ROM | disk | FTP | other *** search
/ Microsoftware Monthly 19…2 Programming Power Tools / MASO9512.ISO / cpptutor / cpptutor.arj / CH08 / A081011.TXT < prev    next >
Encoding:
Text File  |  1993-11-24  |  438 b   |  8 lines

  1. If you are designing a class that may be used as a base for
  2. derived classes, try not to depend on friend functions.  Such use
  3. of friends can undermine the reuseability of your code.  Here, the
  4. Athlete class is the base class of HockeyStar.  The Athlete
  5. class is a friend of the Customer class.  Member functions of an
  6. Athlete object can access the members of the Customer class, but
  7. member functions of a HockeyStar object cannot.
  8.