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

  1. Here, the member function bright() of the LightHouse class is a
  2. friend of the Weather class.  This function has direct access to
  3. members of the LightHouse object through the "this" pointer.  It
  4. also has direct access to members of the Weather object "w".  The
  5. function bright() might, for example, determine the visibility of
  6. a LightHouse object based on the power of its light and on weather
  7. conditions.
  8.