Hi, Can u please help to solve this programming question.
Q. Design and implement a class "Longtime" using C + + . The class "Longtime" represents the time as hours, minutes and seconds using 24 hour - time format. The class should have a constructor that initialises time to 12:00:00. The class has two member functions as follows :-
(a) "Difference Time" which overloads the - (minus) operator to find the difference of time stored in two different Longtime objects ; and
(b) "Print Time" that prints the time as a.m. or p.m. for example, if a Longtime object has the time stored as 15:15:30, then this print time function will output : 03:15:30 p.m.