Homework 7

Due Tue Nov 3, 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) Which of the creational design patterns is most like the Template Method design pattern? Explain your answer.

  2. Which of the creational design patterns is most like the Strategy design pattern? Explain your answer.

  3. What is the intent of the Factory Method design pattern?

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

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

  6. (1 point) What are the participants in the Builder design pattern? What are their roles?

  7. What is the intent of the Builder design pattern?

  8. (1 point) What are the participants in the Builder design pattern? What are their roles?