previous | start | next

## Example: An Educational Game (Class and Function Comments)

- Before reinventing the wheel, determine if you can use the `Time` class that is part of the book before designing a new class.
- To use the `Time` class from the book, you must set seconds to zero. (Seconds has no use in our game).
- To see whether two times are identical, check whether there are zero seconds from the first time to the second time.

  >     time1.seconds_from(time2) == 0

previous | start | next