SOLID principles

Kishor Sutar
Aug 26, 2017 · 1 min read

In 1990s Robert C Martin gathered 5 principles of object-oriented class design, presenting them as best guide lines for building a maintainable object oriented design system. Michel Feathers attached acronym SOLID these principles in the early 2000s.

Single Responsibility Principle (SRP)-

Classes should have one reason to change, Keep your classes small and single-purposed.

Open Closed Principle (OCP)-

Design classes to be open for extensions but closed for modifications. Minimize…

Keep the story going. Sign up for an extra free read.

You've completed your member preview for this month, but when you sign up for a free Medium account, you get one more story.
Already have an account? Sign in

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade