tutorial, no_image, opps,

Opps - no_image

Upendra Upendra Follow Jan 23, 2025 · 1 min read
Opps - no_image
Share this

SOLID Principles

SOLID is a mnemonic acronym for five design principles intended to make software designs more understandable, flexible and maintainable. The theory of SOLID principles was introduced by Martin in his 2000 paper Design Principles and Design Patterns, although the SOLID acronym was introduced later by Michael Feathers.

Concepts

  • Single-responsibility principle - A class should only have a single responsibility, that is, only changes to one part of the software’s specification should be able to affect the specification of the class.
  • Open–closed principle - Software entities (classes, modules, functions, etc.) should be open for extension, but closed for modification.
  • Liskov substitution principle - Objects in a program should be replaceable with instances of their subtypes without altering the correctness of that program.
  • Interface segregation principle - Many client-specific interfaces are better than one general-purpose interface.
  • Dependency inversion principle - Depend on abstractions, not on concretions.

Links

SOLID

SOLID Principles made easy

SOLID Principles: Explanation and examples

Further reading

👨‍💻Kotlin SOLID Principles

credit goes to @swayangjit
Join Newsletter
Get the latest news right in your inbox. We never spam!
Upendra
Written by Upendra Follow
Hi, I am Upendra, the author in Human and machine languages,I don't know to how 3 liner bio works so just Connect with me on social sites you will get to know me better.