A compound pattern combines two or more patterns into a solution that solves a recurring or general problem.
A Pattern is a solution to a problem in a context.
The context is the situation in which the pattern applies. This should be a recurring situation.
The problem refers to the goal you are trying to achieve in this context, but it also refers to any constraints that occur in the context.
The solution is what you re after: a general design that anyone can apply which resolves the goal and set of constraints.
- Abstract Factory
- Factory Method
- Template Method
- Chain of Responsibility
In GoF classic Design Patterns, there 23 patterns.