Here is my problem:
A clock radio using ADT and inheritance.
the clocl radio will have the following features:
1. Display time
2. An alarm that will ring and/or turn the radio
on at the preset alarm time.
3. Dispaly the radio station that the radio is
tuned to.
4. AM and FM band.
5. Control for Volume with display of valume level.
6. A timer to allow the radio to play for an hour
while the person falls asleep.
The program should have at least three classes.
1. Clock- that contains all of the attribute and
methods required.
2. Alarm- with all appropriate attributes and methods.
3. Radio- that inherits from Clock and Alarm and
provides any additional attributes and methods to complete the software. Note: this is
multiple inheritance.
Note: please comment the code so that I can understand
the approach.
2006-12-12
08:09:36
·
3 answers
·
asked by
Pushpendra C
1
in
Computers & Internet
➔ Programming & Design