previous | start | next

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

- The `Game` class:

  >     class Game
  >     {
  >     public:
  >        /**
  >           Plays the game while the player wants to continue
  >        */
  >        void play();

  >        /**
  >           Reads player name and level.
  >        */
  >        void read_player_information();

  >        /**
  >           Plays a round, with up to two guesses.
  >        */
  >        void play_round();
  >     };

previous | start | next