LAB
Estimated time
10-20 minutes
Level of difficulty
Medium
Objectives
- improving the student's skills in operating with special methods
Scenario
- Extend the class implementation prepared in the previous lab to support the addition and subtraction of integers to time interval objects;
- to add an integer to a time interval object means to add seconds;
- to subtract an integer from a time interval object means to remove seconds.