SOLID Principles Flashcards
1
Q
S
A
Single Responsibility Principle A class should have one and only one reason to change.
2
Q
O
A
Open/Closed Principle
Software entities should be open for extension but closed for modification.
3
Q
L
A
Liskov Substitution Principle
Subtypes must be substitutable for their base types.
4
Q
I
A
Interface Segregation Principle The dependency of one class to another one should depend on the smallest possible interface. - Clients should not be forced to implement interfaces they don't use. - Instead of one fat interface many small interfaces are preferred based on groups of methods, each one serving one submodule.
5
Q
D
A
Dependency Inversion Principle
Depend upon abstractions (interfaces), not concrete classes.