Question: void Clock: :plusMinute ( ) { this minute _ + = 1 ; / / reset the minutes to 0 at the end of the

void Clock: :plusMinute(){
this minute_+=1;
//reset the minutes to 0 at the end of the day
}
this minutes %=1440;
Given the above implementation of the plusMinute member function of the Clock class and the following declaration:
Clock demo (1,15);
Suppose that we call three times after the above declaration. What would be the value of for the object?
 void Clock: :plusMinute(){ this minute_+=1; //reset the minutes to 0 at

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!