26.5.2 The STRATEGY Pattern
- Comparator object provides a great deal of flexibility
- This is an example of the STRATEGY pattern
- Applies whenever you want to allow a client to supply an algorithm
- Pattern places the essential steps in a strategy i/f
- Vary algorithm by supplying different classes
prev
|top
|next