Question: In Chapter 10 , the class clockType was designed to implement the time of day in a program. Certain applications, in addition to hours, minutes,
In Chapter 10, the class clockType was designed to implement the time of day in a program. Certain applications, in addition to hours, minutes, and seconds, might require you to store the time zone. Derive the class extClockType from the class clockType by adding a member variable to store the time zone. Add the necessary member functions and constructors to make the class functional. Also, write the definitions of the member functions and the constructors. Finally, write a test program to test your class.
The program does not need to test if there is a zimezone difference, but just report the timezone. The test would run the data extClockType time1(5, 10, 34, "CST");
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
