S.O.L.I.D: Open/Closed Principle

solid OCP java OOD

March 25, 2020· 4 min read

The Open/Closed Principle (OCP) is the SOLID principle which states Software entities (classes, modules, functions, etc.) should be open for extension but closed for modification.

S.O.L.I.D: Single Responsibility Principle

solid SRP java OOD

March 25, 2020· 3 min read

In programming, the Single Responsibility Principle states that every module or class should have responsibility for a single part of the functionality provided by the software.