Create a class Clock having private data members hour and minute in integer.

a) Create a class Clock having private data members hour and minute in integer. A default
constructor should initialize the data to 0. Overload it with parameterized constructor. A
member function should enter the data and another should display time in 10:37 format. A
final member function should receive two objects, add them and store the result to the
invoking object. Write an appropriate main ( ) function.

Leave a Reply