Skip to main content

Introducing new learning courses and educational videos from Apress. Start watching

The Open/Closed Principle

  • 1697 Accesses

Abstract

The Open/Closed principle says that:

This is a preview of subscription content, access via your institution.

Buying options

Chapter
USD   29.95
Price excludes VAT (USA)
  • DOI: 10.1007/978-1-4842-4119-6_2
  • Chapter length: 20 pages
  • Instant PDF download
  • Readable on all devices
  • Own it forever
  • Exclusive offer for individuals only
  • Tax calculation will be finalised during checkout
eBook
USD   54.99
Price excludes VAT (USA)
  • ISBN: 978-1-4842-4119-6
  • Instant PDF download
  • Readable on all devices
  • Own it forever
  • Exclusive offer for individuals only
  • Tax calculation will be finalised during checkout
Softcover Book
USD   69.99
Price excludes VAT (USA)
Figure 2-1
Figure 2-2
Figure 2-3

Notes

  1. 1.

    Robert C. Martin, “The Principles of OOD,” http://butunclebob.com/ArticleS.UncleBob.PrinciplesOfOod .

  2. 2.

    Erich Gamma e.a., Design Patterns: Elements of Reusable Object-Oriented Software, Addison-Wesley, 1994.

  3. 3.

    See also the documentation for PHP’s “callable” type: https://secure.php.net/manual/en/language.types.callable.php

  4. 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

Authors

Rights and permissions

Reprints and Permissions

Copyright information

© 2018 Matthias Noback

About this chapter

Verify currency and authenticity via CrossMark

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