home *** CD-ROM | disk | FTP | other *** search
- Here, the member function bright() of the LightHouse class is a
- friend of the Weather class. This function has direct access to
- members of the LightHouse object through the "this" pointer. It
- also has direct access to members of the Weather object "w". The
- function bright() might, for example, determine the visibility of
- a LightHouse object based on the power of its light and on weather
- conditions.
-