Design Patterns

Tom Kelliher, CS 245

Nov. 15, 2004

Administrivia

Announcements

Assignment

Read Chapter 11. Online essay.

From Last Time

Project management.

Outline

  1. Chapter questions.

  2. Team Exercises.

Coming Up

Horror stories.

Chapter Questions

  1. What is a design pattern? What recurring concept are they an example of?

  2. Name and describe the three categories of design patterns.

  3. Give an example of the decorator design pattern. Explain why your example fits this pattern.

  4. Give an example of the iterator design pattern. Explain why your example fits this pattern.

  5. Give an example of the state design pattern. Explain why your example fits this pattern.

Team Exercises

  1. Design the classes you would require for your Galaxy Sleuth project in order to take advantage of the state design pattern.



Thomas P. Kelliher
Sun Nov 14 15:58:04 EST 2004
Tom Kelliher