Question: class Clock { private: int minutes _ ; / / number of minutes from midnight public: Clock ( ) ; / / default constructor void
class Clock
private:
int minutes; number of minutes from midnight
public:
Clock; default constructor
void plusHour; increase the time by hour
void plusMinute; increase the time by minute
;
Given that myClock is an object of the above Clock class whose current time is midnight, ie: AM Which of the following is a proper way to change the time to : AN
myClock.plusMinute;
myClock.plusMinute;
myClock.plusHour;
myClock.plusHour
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
