In Chapter 10, the class clockType was designed toimplement the time of day in a program. Certain applications, inaddition to hours, minutes, and seconds, might require you to storethe time zone. Derive the class extClockType from the classclockType by adding a member variable to store the time zone. Addthe necessary member functions and constructors to make the classfunctional. Also, write the definitions of the member functions andthe constructors. Finally, write a test program to test yourclass.
Here are included header files:
clockType.h
—————————————————-
//clockType.h, the specification file for the classclockType
#ifndef H_ClockType
#define H_ClockType
class clockType
{
public:
void setTime(int hours, int minutes, intseconds);
//Function to set thetime.
//The
PayPal Gateway not configured
PayPal Gateway not configured