Swipe to navigate through the chapters of this book
With strategies for generating objects covered, we’re free now to look at some strategies for structuring classes and objects. I will focus in particular on the principle that composition provides greater flexibility than inheritance. The patterns I examine in this chapter are once again drawn from the Gang of Four catalog.
Please log in to get access to this content
To get access to this content you need the following product:
- Patterns for Flexible Object Programming
- Sequence number
- Chapter number
- Chapter 10