Program Must C Syntax Write Definition Generic Class Called Time Hours Minutes Structure C Q43781730
- The program must be in C# syntax
- Write the definition for a generic class calledtime that has hours and minutes as structure. Theclass has the following member functions:
SetTime to set the specified value in object
ShowTime to display time object
Sum to sum two time object & return time
- Write the definitions for each of the above memberfunctions.
- Write main function to create three time objects. Set the valuein two objects and call sum() to calculate sum and assign it inthird object. Display all time objects.
Expert Answer
Answer to The program must be in C# syntax Write the definition for a generic class called time that has hours and minutes as str…
OR