Composite: Implementation (cont.)
For efficiency, object may cache the results of calling a parent’s methods.
If child objects cache results, parents must notify their children when the results become invalid.
Previous slide
Next slide
Back to first slide
View graphic version