// testradio.cpp - tests class ClockRadio (Nagler, pp. 329 // - main for multiple inheritance example) // cmc, 8/13/03 #include #include "clockradio.h" using std::cout; int main() { ClockRadio cr(49.95); cout << cr.getCost() << '\n'; // access Appliance function cout << cr.getStation() << '\n'; // access Radio function cout << cr.getClockTime() << '\n'; // access AlarmClock function cout << cr.getAlarmTime() << '\n'; // access AlarmClock function again }