C++ Program – Create a class Time with Hour, Minute and Second as Private data members.
a. Define constructor to initialize the data members. b. Define two member functions input( ) to allow the user to input values for the data members. c. Create a function of name display(…