Use Monopoly, explaining that the game is a class, to demonstrate Java classes and objects in a familiar and interactive way.

  • In this activity, the game itself is a class, while the squares, pieces, and chance cards are objects.
  • Have students determine which components of the game are objects and state what their responsibilities are.
    • Class-responsibility-collaboration (CRC) cards are a good way to have students organize the objects.
  • You can go through this process with multiple board games, like Scrabble, to give students more practice.

More about this tip

External Source

"Non-Programming Resources for an Introduction to CS" by Joseph Bergin, Myles McNally, Mike Goldweber, Charles Kelemen, Tom Naps, Chris Power, and Stephen Hartley.