- What is a behavioral design pattern?
A behavioral pattern describes a way to solve a common problem by using a specific method to communicate between different objects.
- What is the template method pattern?
The template method pattern is a standard way to implement an algorithm that has a rigid skeleton or the overall flow of control, but allows for one or more customization points for specific kinds of problems.
- Why is the template method considered a behavioral pattern?
The template method lets the subclasses (derived types) implement specific behaviors of the otherwise generic algorithm. The key to this pattern is the way the base and the derived types interact.
- What is the inversion of control and how does it apply to the template method?
The more common hierarchical approach to design sees the low-level code provide building blocks from which the high-level...