TORONTO KIDS COMPUTER CLUB | Markham Saturday 14:00 Java Homework 21.08.21.
19862
post-template-default,single,single-post,postid-19862,single-format-standard,ajax_fade,page_not_loaded,,qode-theme-ver-7.6.2,wpb-js-composer js-comp-ver-6.10.0,vc_responsive

Markham Saturday 14:00 Java Homework 21.08.21.

24 Aug Markham Saturday 14:00 Java Homework 21.08.21.

Question:

 Create a Time class with two properties called hours and minutes

The constructor method, Time(hours, minutes) will create an Time object and initialize it with hours and minutes.

The method addTime(hours, minutes) which should add the arguments hours and minutes to the properties of the Time class.

The method displayTime which should print the time.

The method DisplayMinute which should display the total minutes in the Time. E.g.- (1 hr 2 min) should display 62 minute.

No Comments

Sorry, the comment form is closed at this time.