Introduction to Object-oriented Programming
- slide 3 : 22
A structured program: Hangman
A sketch of Hangman 2006 - seen as a structured program
The main function of the Hangman program.
The function getPlayerName of main.
The function initHangman of main.
The function askUser of main.
The function playHangman of main.
The function InitGame of playHangman.
The function getPuzzle of playHangman.
The OOP counterpart
Etc., etc...
How did you program the Hangman game?
A similar example: MiniBank (in Danish)