Designing a Day Class
- Custom class, for teaching/learning purpose
- Use the standard library classes, not this class, in your own
programs
- Day encapsulates a day in a fixed location
- No time, no time zone
- Use Gregorian calendar
- Answer questions such as:
- How many days are there between now and the end of the
year?
- What day is 100 days from now?
previous |
start |
next .... [Slide 9] ....