
Lesson 12-7: Case Study Maintenance
Classes and Abstraction | 299
Name __________________________________________ Date _______________________
Section _________________________________________
Rather than working with the case study, you are asked to rewrite a class used in the case
study: class TimeOfDay.
Exercise 1: Class TimeOfDay has three data members: hours, minutes, and seconds. When we
are talking about appointment times, seconds have no meanings. Write a new class
TimeOfDayAlt, which does not have a data member seconds.
Exercise 2: Write and implement a test plan for class TimeOfDayAlt.
Exercise 3: Another implementation of this class would ...