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.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here