Guest MemberLanguage   English
Software Architecture · SOLID Principles

What is Open Closed Principle in SOLID Principles?

BeginnerUpdated 2026-08-09

OCP encourages designs that allow new behavior to be added with minimal modification to stable existing code. In practice, the value of this concept comes from understanding where it belongs in the architecture, what problem it solves, and what constraints or tradeoffs it introduces.

#solid-principles#ocp