This is an old revision of the document!
Modules should be open for enhancement but closed for modification.
Beware that wrong application of OCP may lead to the anti-pattern onion.
See also section contrary principles.
Bertrand Meyer: Object-Oriented Software Construction, p. 57pp.
|Principles In "Object-Oriented Software Construction"|
|“Five Rules”||Direct Mapping||Few Interfaces||Small Interfaces||Explicit Interfaces||Information Hiding|
|“Five Principles”||Linguistic Modular Units||Self-Documentation Principle||Uniform Access Principle||Open-Closed Principle||Single Choice Principle|
|Further principles||Command-Query Separation||Operand Principle||Symbolic Constant Principle||Taxomania Rule|
Discuss this wiki article and the principle on the corresponding talk page.