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

  1. The "this" pointer is a pointer to an object of a class and is 
  2. supplied by the compiler.  Every nonstatic member of a function 
  3. can use it, by referring to its reserved name, "this".  In this 
  4. example, the member function demo() uses the "this" pointer to 
  5. access the data member "degrees".  Such a use of the "this" 
  6. pointer is legal but not necessary.  There are situations where
  7. you must use the "this" pointer.
  8.