Question: BJP 4 Exercise 8 . 7 : addTimeSpan Language / Type: Java classes instance methods Related Links: TimeSpan.java Author:Marty Stepp ( on 2 0 1

BJP4 Exercise 8.7: addTimeSpan
Language/Type: Java classes instance methods
Related Links:
TimeSpan.java
Author:Marty Stepp (on 2016/09/08)
Add the following method to the TimeSpan class:
public void add(TimeSpan span)
Adds the given amount of time to this time span.
Recall the TimeSpan code from this chapter:
public class TimeSpan {
private int hours;
private int minutes;
public void add(int hours, int minutes){...}
public int getHours(){...}
public int getMinutes(){...}
public String toString(){...}

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!