Rewrite the header and body of SetHour, SetMinute, and SetSecond functions in the Time class to enable invoking these functions sequentially in the same statement (cascaded function calls). For Example, suppose T1 is an object of Time class, so you can call SetHour, SetMinute, and SetSecond functions as follows:
T1. SetHour (14). SetMinute (15). SetSecond(45);
class Time