Abstract
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.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Author information
Authors and Affiliations
Rights and permissions
Copyright information
© 2013 Matt Zandstra
About this chapter
Cite this chapter
Zandstra, M. (2013). Patterns for Flexible Object Programming. In: PHP Objects, Patterns, and Practice. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4302-6032-5_10
Download citation
DOI: https://doi.org/10.1007/978-1-4302-6032-5_10
Published:
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-4302-6031-8
Online ISBN: 978-1-4302-6032-5
eBook Packages: Professional and Applied ComputingProfessional and Applied Computing (R0)Apress Access Books