Question: Please implement the following problem in basic C++ code and include detailed comments so that I am able to understand the processes for the solution.
Please implement the following problem in basic C++ code and include detailed comments so that I am able to understand the processes for the solution. Thanks in advance.

// clockType
#include#include #include using namespace std; class clockType { public: void setTime(int,int,int); void getTime(int&,int&,int&)const; void printTime()const; void setH(int); void setM(int); void setS(int); int getH()const; int getM()const; int getS()const; void incrementSeconds(); void incrementMinutes(); void incrementHours(); bool equalTime(const clockType& other) const; private: int hr; int min; int sec; }; //------------------------ clockType class function implementation void clockType::setTime(int i, int j, int k){ hr = i; min = j; sec = k; } void clockType::setH(int h){ hr = h; } void clockType::setM(int m){ min = m; } void clockType::setS(int s){ sec = s; } void clockType::getTime(int& i, int& j, int& k)const{ i = hr; j = min; k = sec; } int clockType::getH() const{ return hr; } int clockType::getM() const{ return min; } int clockType::getS() const{ return sec; } void clockType::printTime() const{ cout
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
