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

  1. Since friends are not member functions, they do not have a "this"
  2. pointer.  Any object to be accessed by the function must be passed
  3. as an argument.  Passing the object as an argument can be one of
  4. the reasons for using friends.  Because this function print() is a
  5. friend, it can be called with the familiar function-call syntax.
  6. Compare the calls shown here of the function print() and of the
  7. function display().
  8.