Home Articles FAQs XREF Games Software Instant Books BBS About FOLDOC RFCs Feedback Sitemap
irt.Org

open/closed principle

You are here: irt.org | FOLDOC | open%2fclosed principle

<programming, theory> A principle used in OOPL which states that a class must be open and closed where open means it has the ability to be extended and closed means it cannot be modified other than by extension.

The idea is that once a class has been approved for use having gone through code reviews, unit tests, and other qualifying procedures, you don't want to change the class very much, just extend it. In practice the open/closed principle simply means making good use of abstraction and polymorphism.

(1997-09-23)

Nearby terms: open box testing « open brace « OpenBSD « open/closed principle » open-collar worker » Open DataBase Connectivity » Open Data-link Interface

FOLDOC, Topics, A, B, C, D, E, F, G, H, I, J, K, L, M, N, O, P, Q, R, S, T, U, V, W, X, Y, Z, ?, ALL

©2018 Martin Webb