In Chapter 10, the class clockType was designed to implement thetime of day in a program. Certain applications, in addition tohours, minutes, and seconds, might require you to store the timezone. Derive the class extClockType from the class clockType byadding a member variable to store the time zone. Add the necessarymember functions and constructors to make the class functional.Also, write the definitions of the member functions and theconstructors.
clockType.cpp
//Implementation File for the class clockType
#include <iostream>
#include “clockType.h”
using namespace std;
void clockType::setTime(int hours, int minutes, int seconds)
{
if (0 <= hours && hours < 24)
hr = hours;
else
hr = 0;
if (0 <= minutes && minutes <
PayPal Gateway not configured
PayPal Gateway not configured