Question: java (fast answer please) (3 points) Which of the following can be used to replace i* missing code part, so that setTime method will correctly
(3 points) Which of the following can be used to replace i* missing code part, so that setTime method will correctly update the time? public class TimeRecord { private int hours; private int minutes; // Oc=minutes public int getMinutes() { return this.minutes: } public void setTime(int n, int m) { // Adds h hours and m minutes to this TimeRecord // Precondition: ha and me hours - hours + h; minutes 5 minutes + mi /* missing code */ Your answer: minutes - minutes 96 60; O minutes = minutes + hours 46 60, O hours = hours + minutes / 60 minutes minutes 4 60: O hours - hours + minutes 96 60; minutes = minutes / 60; hours = hours + minutes / 60
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
