Question: class clockType { public: void setTime ( int , int, int ) ; void getTime ( int& , int& , int& ) const; void printTime
class clockType
public:
void setTimeint int, int;
void getTime int& int& int& const;
void printTime const;
void incrementSeconds;
void incrementMinutes;
void incrementHours;
bool equalTime const clockType& const;
private:
int hr;
int min;
int sec;
;
void clockType::setTime int hours, int minutes, int seconds
if hours && hours
hr hours;
else
hr ;
if minutes && minutes
min minutes;
else
min ;
if seconds && seconds
sec seconds;
else
sec ;
void clockType::getTimeint& hours, int& minutes,
int& seconds const
hours hr;
minutes min;
seconds sec;
what is the value of b after executing the following program
clockType myClock;
int a b c;
myClock.setTime;
myClock.getTimea b c;
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
