ProAnswers.org

please replay

Given the definition of the class clockType with constructors (as described in the
M211 textbook), what is the output of the following C++ code?
clockType clock1;
clockType clock2 (23, 13, 75);
clock1.printTime();
cout << endl;
clock2.printTime();
cout << endl;
clock1.setTime(6, 59, 39);
clock1.printTime();
cout << endl;
clock1.setTime (1, 13, 0);
if (clock1.equalTime(clock2))
cout << “Clock1 time is the same as clock2 time.” << endl;
else
cout << “The two times are different.” << endl;