The open-closed principle states that a software module should be:
resource: Software Architecture Design Patterns in Java by Partha Kuchana (April 22, 2004)
- Open for extension — It should be possible to alter the behavior of a module or add new features to the module functionality.
- Closed for modification — Such a module should not allow its code to be modified.
resource: Software Architecture Design Patterns in Java by Partha Kuchana (April 22, 2004)