home *** CD-ROM | disk | FTP | other *** search
/ Microsoftware Monthly 19…2 Programming Power Tools / MASO9512.ISO / cpptutor / cpptutor.arj / CH08 / A08109.WAV (.mp3) < prev    next >
Waveform Audio File Format  |  1993-10-22  |  300.3 KB  |  1 channel  |  11,025 sample rate  |  28 seconds
Transcription: You can declare a class to be a friend of another class as shown here. The members of a weather object can store and extract information such as temperature, rainfall, and hours of sunlight. Because the greenhouse class is a friend of the weather class, all member functions of the greenhouse class can access all data members and can call member functions of the weather class. Two classes cannot be friends of each other.