https://github.com/amigoscode/solid
https://github.com/amigoscode/solid
Last synced: 6 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/amigoscode/solid
- Owner: amigoscode
- Created: 2022-04-21T13:30:02.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2022-04-21T13:39:25.000Z (over 3 years ago)
- Last Synced: 2025-07-12T17:44:29.086Z (6 months ago)
- Language: Java
- Size: 5.86 KB
- Stars: 43
- Watchers: 3
- Forks: 27
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# SOLID Principles
## YT Video
https://amigoscode.hypg.es/solid-youtube

## SOLID
- Single Responsibility
Each class should have only one sole purpose, and not be filled with excessive functionality
- Open Closed
Classes should be open for extension, closed for modification.
In other words, you should not have to rewrite an existing class for implementing new features.
- Liskov Substitution
Let Φ(x) be a property provable about objects x of type T. Then Φ(y) should be true for objects y of type S where S is a subtype of T.
This means that every subclass or derived class should be substitutable for their base or parent class
- Interface Segregation
Interfaces should not force classes to implement what they can’t do.
Large interfaces should be divided into small ones.
- Dependency Inversion
Components should depend on abstractions, not on concretions.