S.O.L.I.D. Principles Flashcards

1
Q

Single-Responsibility Principle

A

A class should have one and only one reason to change, meaning that a class should have only one job.

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

Open-Closed Principle

A

Objects or entities should be open for extension but closed for modification

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

Liskov Substitution Principle

A

Let q(x) be a property provable about objects of x of type T. Then q(y) should be provable for objects y of type S where S is a subtype of T. *Rewrite this into English

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

Interface Segregation Principle

A

A client should never be forced to implement an interface that it doesn’t use, or clients shouldn’t be forced to depend on methods they do not use.

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

Despendency Inversion Principle

A

Entities must depend on abstractions, not on concretions, It states that the high-level module must not depend on the low-level module, but they should depend on abstractions.

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