2- Create a class time24, each object is a value represented the time ofday in the form hours, minutes and seconds. Provide a constructorthat enables an object of this class to be initialized when it isinstantiated. The constructor should contain default values in case noinitializes are provided.Provide Public member functions for each of the followingoperations: set the time, print the time, increment the time by onesecond, compare two times for equality, increment the time by onehour, determine if one time is “less than” (comes before) anothertime, and final print the time in format 12 hours.Include any additional operations that you think would be useful foryour class.Design, implement, and test your class.
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here