home *** CD-ROM | disk | FTP | other *** search
- The "this" pointer is a pointer to an object of a class and is
- supplied by the compiler. Every nonstatic member of a function
- can use it, by referring to its reserved name, "this". In this
- example, the member function demo() uses the "this" pointer to
- access the data member "degrees". Such a use of the "this"
- pointer is legal but not necessary. There are situations where
- you must use the "this" pointer.
-