SOLID

SOLID presentation: link (Google Presentation)

SOLID examples: download (Google Drive)

Basics

The 5 principales:

  • SRP (Single Responsibility Principle)
  • OCP (Open/Closed Principle)
  • LSP (Liskov Substitution Principle)
  • ISP (Interface Segregation Principle)
  • DIP (Dependency Inversion Principle)

SRP

“An object should have only a single responsibility.”

OCP

“An object should be open for extension, but closed for modification.”

LSP

“Objects in a program should be replaceable with instances of their subtypes without altering the correctness of that program.”

ISP

“Many client specific interfaces are better than one general purpose interface.”

DIP

“Depend upon abstractions, do not depend upon concretions.”

Code

examples-done-live

results matching ""

    No results matching ""