previous | start | next

## Using Objects

- The Time class does not have any member functions used to set the state of the object to avoid abuse:

  >     now.set_hours(2); /* No! Not a supported member function */
  >     now.set_hours(9999); /* Doesn't make sense */

- The Time class does provide other member functions to facilitate other actions:

  >     now.add_seconds(1000); /* Changes now to move by 1000 seconds */
  >     now.seconds_from(day_end); /* Computes number of seconds between now and day_end */

previous | start | next