home *** CD-ROM | disk | FTP | other *** search
/ Microsoftware Monthly 19…2 Programming Power Tools / MASO9512.ISO / cpptutor / cpptutor.arj / CH08 / A081012.TXT < prev    next >
Encoding:
Text File  |  1993-10-18  |  483 b   |  9 lines

  1. There are legitimate reasons for creating friends.  Unfortunately,
  2. there can also be a temptation to use friend functions to work
  3. around design limitations in a class or set of classes.  For
  4. example, friends can break the rules of data hiding and strict
  5. typing.  You should make sure that including friend functions is
  6. appropriate for the public interface of your classes, and that
  7. declaring friend classes is consistent with the intended
  8. relationships between your classes.
  9.