previous | start | next

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

- The `Player` class:

  >     class Player
  >     {
  >     public:
  >        /**
  >           Increments the score. Moves to next level if
  >           current level complete.
  >        */
  >        void increment_score();

  >        /**
  >           Gets the current level.
  >           @return the level
  >        */
  >        int get_level() const;
  >     };

previous | start | next