Open/Closed Principle (OCP) Explained: SOLID with Examples
The Open/Closed Principle states: Software entities should be open for extension, but closed for modification.
Read articlePractical guides and thoughtful notes on software engineering, systems, and the tools developers use every day.
Explore the collection
47 published posts
Browse by topic, search for an idea, or follow a learning series.
Showing 1–3 of 3 articles
The Open/Closed Principle states: Software entities should be open for extension, but closed for modification.
Read article
In this article, we'll focus on the first principle: Single Responsibility Principle. The Single Responsibility Principle is commonly expressed as: A class should have one, and only one, reason to change.
Read article
SOLID is an acronym that represents five software design principles. These principles are mainly associated with object-oriented programming (OOP), where we organize applications using classes and objects.
Read article