Question: C++ programming Classes Using the UMLs below, create class files and a test driver program that exercises all your methods. Time - hours: int -
C++ programming
Classes
Using the UMLs below, create class files and a test driver program that exercises all your methods.
| Time | |
| - | hours: int |
| - | minutes: int |
| - | seconds: double |
| + | setSeconds(double) : void |
| + | setMinutes(int): void |
| + | setHours(int): void |
| + | getSeconds(): double |
| + | getMinutes(): int |
| + | getHours(): int |
| Day | |
| - | day : int |
| - | month: int |
| - | year: int |
| + | setDay(int): void |
| + | setMonth(int): void |
| + | setYear(int): void |
| + | getDay(): int |
| + | getMonth(): int |
| + | getYear(): int |
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
