Abstract
The Open/Closed principle says that:
This is a preview of subscription content, access via your institution.
Buying options



Notes
- 1.
Robert C. Martin, “The Principles of OOD,” http://butunclebob.com/ArticleS.UncleBob.PrinciplesOfOod .
- 2.
Erich Gamma e.a., Design Patterns: Elements of Reusable Object-Oriented Software, Addison-Wesley, 1994.
- 3.
See also the documentation for PHP’s “callable” type: https://secure.php.net/manual/en/language.types.callable.php
- 4.
An excellent discussion on the topic of marking classes as “final” can be found at: Marco Pivetta, “When to Declare Classes Final,” https://ocramius.github.io/blog/when-to-declare-classes-final/.
Author information
Authors and Affiliations
Rights and permissions
Copyright information
© 2018 Matthias Noback
About this chapter
Cite this chapter
Noback, M. (2018). The Open/Closed Principle. In: Principles of Package Design. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-4119-6_2
Download citation
DOI: https://doi.org/10.1007/978-1-4842-4119-6_2
Published:
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-4842-4118-9
Online ISBN: 978-1-4842-4119-6
eBook Packages: Professional and Applied ComputingProfessional and Applied Computing (R0)Apress Access Books