Today, we will explore the Open/Closed Principle (OCP) from SOLID, which was introduced by Bertrand Meyer in 1988. The principle states:
A software artifact should be open for extension but closed for modification.
Today, we will explore the Open/Closed Principle (OCP) from SOLID, which was introduced by Bertrand Meyer in 1988. The principle states:
A software artifact should be open for extension but closed for modification.
According to Robert C. Martin (Uncle Bob), the Single Responsibility Principle (SRP) is:
A module must be responsible to one, and only one, actor.
In this article, we will understand what this statement means studying the first principle from SOLID.