previous | start | next

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

- The `Clock` class:

  >     class Clock
  >     {
  >     public:
  >        /**
  >           Sets current time.
  >           @param t the time to set
  >        */
  >        void set_time(Time t);

  >        /**
  >           Draws the lock face, with tick marks and hands.
  >        */
  >        void draw() const;
  >     };

previous | start | next