SOLID Flashcards

(6 cards)

1
Q

Single Responsibility Principle

A

A class should have just one reason to change.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Open/Closed Principle

A

Classes should be open for extension, close for modification

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Liskov Substitution Principle

A

Able to pass objects the subclass in place of object of parents class without breaking the client code

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Interface Segregation Principle

A

Clients shouldn’t be forced to depend on the methods that they don’t use

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q
A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly