Lesson
30 LAB EXERCISE DATE3
Background:
We now complete the implementation of the date abstraction by coding the overloaded increment/decrement. The lab work will mirror the content of the student outline. Carefully test each member function as you implement it.
Overloaded increment/decrement operators:
preincrement (++)
postincrement (++)
predecrement (--)
postdecrement (--)
Overloaded relational operators (you must do all 6 relational operators):
>, <, ==, !=, <=, >=
Assignment:
1. Implement the four increment/decrement functions and test each one. Test the incrementing or decrementing aspect of each as well as the values they return. For example, you should test the result of this type of scenario for all four operators:
date
day1 (6,27,96), day2;