Subject : object Orieted Programing ..Netbean Java Q: Write down an abstract class Time1 having attributes (hours, minutes, seconds), containing no argument constructor, 3 argument constructor. Write...


Subject : object Orieted Programing  ..Netbean Java


Q: Write down an abstract class Time1 having attributes (hours, minutes, seconds), containing no argument constructor, 3 argument constructor. Write down an abstract function time() that increments seconds by 1 if seconds are equal to 60 then increment minutes by 1 and set seconds to 0. If minutes become equal to 60 then increment hours by 1 and set minutes to 0. Write a function that compare 2 time objects and return true if they are equal otherwise returns false.



Jun 08, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here