The SOLID Principles — OCP, LSP, ISP

KRISHNA KISHORE V
5 min readJun 15, 2023

In the previous article, we have seen Single Responsibility Principle from both the OOP and Microservices perspectives. In this article, we will look at the other principles.

The next one is the Open-Closed Principle.

Open-Closed Principle

This principle states that the modules should be open for extension and closed for modification.

For this, we luckily have the same example from the previous article. Remember the classes from the previous article which are pasted below.

--

--

KRISHNA KISHORE V

Full Stack Tech Lead | Software Consultant | Technical Content Writer