// clockradio.h - header file for class ClockRadio (Nagler, pp. 328-9 // - derived from both AlarmClock and Radio) // cmc, 8/13/03 #ifndef CLOCK_RADIO_H #define CLOCK_RADIO_H #include "alarmclock.h" #include "radio.h" class ClockRadio : public AlarmClock, public Radio { enum sound { radio, buzz }; public: // implicit inline functions ClockRadio(double cost, sound soundType = buzz) : Appliance(cost), soundType(soundType) { } void set_wakeup(sound s = buzz) { soundType = s; } private: sound soundType; }; #endif