Loading
The Open/Closed Principle (OCP) is a software design principle stating that code should be open to extension but closed to modification. Developers apply it by using abstractions, composition, and polymorphism to add behavior without changing stable, tested code, often as part of SOLID design.
22 posts about OCP by 16 contributors.
Know OCP? Share what you know with developers who are learning it.
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegisterPublish an article in this category and earn +1,000 SHARP when it is approved.
Write an article