Chapter Summary
- Iterators are preferred to cursors
- A design pattern uses a standard format to give proven advice about a
problem in software design
- The ITERATOR pattern teaches how to access the elements of an aggregate
object
- The ADAPTER pattern teaches how to use a class in a context that requires
a different interface
- The STRATEGY pattern teaches how to supply variants of an algorithm to a
client
- The TEMPLATE METHOD pattern teaches how to supply varying behavior
patterns to an algorithm
- The COMPOSITE pattern teaches how to combine several objects into an
object that has the same behavior as its parts
- Design patterns apply in specific situations that are described by the
context and solution parts of the pattern
prev
|top