HW 13: Hangman Secret Word

due 11/15

In class we talked about the hangman game having the hangman, the list of wrong guesses, and the secret word. Using Object-Oriented Programming, it makes sense to make each of those components a class. For example:

Wrong Guesses

Data

Actions

This describes the SortedSet class that you already made in lab. Classes allow us to create useful abstractions that combine data and actions that we need for our program. The data are part of the data members of the class (we often need other variables as well), and the actions are the public methods.

Secret Word

Your part. Describe the data and actions for the secret word as I did above. Then go one step further and list the method prototypes (just the headers!) for the actions you chose. That forces you to think about what parameters need to go into each method, and what if anything is returned.