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.