S.O.L.I.D. is a collection of best-practice, object-oriented design principles which can be applied to your design, allowing you to accomplish various desirable goals such as loose-coupling, higher maintainability, intuitive location of interesting code, etc. S.O.L.I.D. is an acronym for the following principles:
Book Description
SRP: Single Responsibility Principle – There should never be more than one reason for a class to change. OCP: Open Closed Principle – Software entities (classes, modules, functions, etc.) Should be open for extension but closed for modification. LSP: Liskov Substitution Principle – Functions that use … References to base classes must be able to use objects of derived classes without knowing it. ISP: Interface Segregation Principle – Clients should not be forced to depend upon interfaces that they do not use. DIP: Dependency Inversion Principle – A. High level modules should not depend upon low level modules. Both should depend upon abstractions B. Abstractions should not depend upon details. Details should depend upon abstractions.
Table of Contents
- SRP: Single Responsibility Principle
- OCP: Open Closed Principle
- LSP: Liskov Substitution Principle
- ISP: Interface Segregation Principle
- DIP: Dependency Inversion Principle
- Topics related to S.O.L.I.D.
- Conclusions and benefits of S.O.L.I.D.