Homework 8

Due Tue Nov 10, 5 points

For this assignment you only need to turn in answers for the questions that have a point count. Other questions should be given some thought and will be useful for review.

  1. (1 point) Briefly describe the solution in the Flyweight design pattern?

  2. (1 point) Briefly describe an examples of the Decorator design pattern that appears in Java's Swing libraries.

  3. What is the intent of the Command design pattern?

  4. (1 point) What are the participants in the Command design pattern? What are their roles?

  5. (1 point) What is the intent of the Interpreter design pattern?

  6. (1 point) What technique is often used for implementing a parser in the Interpreter design pattern?