The Compound Pattern, as its name already tells, is a collection of patterns. Patterns are often used together and combined within the same design solution. For instance, MVC architecture can be dissected into patterns.
- Model: Observer Pattern
- The model keeps interested objects updated when state change occurs
- View: Composite Pattern
- The view consists of a nested set of windows, panels, buttons, etc.
- Controller: Strategy pattern
- The view is an object that is configured with a strategy. The controller provides the strategy and the view is concerned with visual aspects of an application.
Top comments (0)