Questions
Let’s take a look at a few practice questions:
- What is the main goal of the Template Method pattern?
- What is the main goal of the Chain of Responsibility pattern?
- Is it true that we can only add one
abstract
method when implementing the Template Method design pattern? - Can we use the Strategy pattern in conjunction with the Template Method pattern?
- Is it true that there is a limit of 32 handlers in a Chain of Responsibility?
- In a Chain of Responsibility, can multiple handlers process the same message?
- In what way can the Template Method pattern help implement the Chain of Responsibility pattern?