Object-Oriented Programming/GUI Applications

From Wikiversity
Jump to navigation Jump to search

This lesson introduces GUI applications.

Objectives and Skills[edit]

Objectives and skills for this lesson include:

Readings[edit]

  1. Wikipedia: Graphical user interface
  2. Wikipedia: List of widget toolkits

Multimedia[edit]

Examples[edit]

Activities[edit]

Create a GUI Application[edit]

  1. Review Stanford: The Card Game Assignment. Create an object-oriented GUI program that implements a card deck application.
  2. Include program, class, and method documentation consistent with the documentation standards for your selected programming language.
  3. Add unit testing to test all aspects of each class. Run tests automatically when the class module itself is run as the main program.

Add Lists[edit]

  1. Enhance the card deck program from above to use lists to implement decks, hands, and players.
  2. Add rules to the card game so users may play one of the following:
    • Black Jack
    • Crazy Eights
    • Go Fish
    • Old Maid
    • Rummy
    • War
  3. Include program, class, and method documentation consistent with the documentation standards for your selected programming language.
  4. Add unit testing to test all aspects of each class. Run tests automatically when the class module itself is run as the main program.

Add Dictionaries[edit]

  1. Enhance the card deck program from above to use dictionaries to implement scoring (tracking player wins and losses).
  2. Include program, class, and method documentation consistent with the documentation standards for your selected programming language.
  3. Add unit testing to test all aspects of each class. Run tests automatically when the class module itself is run as the main program.

Lesson Summary[edit]

Key Terms[edit]

See Also[edit]

References[edit]