SOLID Flashcards
(6 cards)
1
Q
Single Responsibility Principle
A
A class should have just one reason to change.
2
Q
Open/Closed Principle
A
Classes should be open for extension, close for modification
3
Q
Liskov Substitution Principle
A
Able to pass objects the subclass in place of object of parents class without breaking the client code
4
Q
Interface Segregation Principle
A
Clients shouldn’t be forced to depend on the methods that they don’t use
5
Q
Dependency Inversion Principle
A
High-level classes shouldn’t depends on low-level classes. Both should depends on abstractions. Abstraction shouldn’t depends on details, but details should depends on abstractions
6
Q
A