A design pattern solves a recurring software architecture or design problem by defining collaborating software elements. Its applicability depends on the context. section 7.6.1
In an object-oriented Strategy solution:
- An interface encapsulates the algorithm; concrete strategies implement it for different contexts; a client class uses the algorithm. section 7.6.1
Bank overdraft policies
An Account can use different overdraft strategies to support policies with varying limits and fees. section 7.6.1
Figure 7.11 The visual representation of different types of relationships between the patterns: a successor pattern solves a problem created by applying the predecessor pattern; two or more patterns can be alternative solutions to the same problem; one pattern can be a specialization of another pattern; and patterns that solve problems in the same area can be grouped, or generalized.
Patterns can relate as successors, alternatives, specializations, or members of a generalized group. section 7.6.1








