20 likes | 213 Views
Problem. Forces. Context. Solution. Consequences. Benefits. Related patterns. Figure 1. A pattern is a problem-solution pair (adapted from Mowbray [7]). Decorator pattern. Strategy pattern. Overdraft Strategy. «participates». «participates». «participates». AccountWrapper. Account.
E N D
Problem Forces Context Solution Consequences Benefits Related patterns Figure 1. A pattern is a problem-solution pair (adapted from Mowbray [7]).
Decorator pattern Strategy pattern Overdraft Strategy «participates» «participates» «participates» AccountWrapper Account Overdraft Not Allowed Deduct Fee Figure 2. Two patterns in a banking system (adapted from [9]). «participates»