home *** CD-ROM | disk | FTP | other *** search
/ Microsoftware Monthly 19…2 Programming Power Tools / MASO9512.ISO / cpptutor / cpptutor.arj / CH09 / A09141.TXT < prev    next >
Encoding:
Text File  |  1993-08-30  |  307 b   |  6 lines

  1. You can overload a prefix unary operator by declaring a nonmember
  2. function that takes a single argument, or a nonstatic member
  3. function that takes no arguments.  Overloaded operators usually
  4. require access to member data.  Therefore, you usually declare
  5. nonmember operators to be friends of the class.
  6.