Principles Flashcards

1
Q

The S in SOLID

A

Single responsibility principle: There should never be more than one reason for a class to change.

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

The O in solid

A

Open/Closed principle: SOFTWARE ENTITIES (CLASSES, MODULES, FUNCTIONS, ETC.) 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

The L in SOLID

A

Liskov substitution principle

FUNCTIONS THAT USE … REFERENCES TO BASE CLASSES MUST BE ABLE TO USE OBJECTS OF DERIVED CLASSES WITHOUT KNOWING IT.

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

The I in SOLID

A

Interface segragation principle

CLIENTS SHOULD NOT BE FORCED TO DEPEND UPON INTERFACES THAT THEY DO NOT USE

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

The D in SOLID

A

Depenency Inversion Principle

A. HIGH LEVEL MODULES SHOULD NOT DEPEND UPON LOW LEVEL MODULES. BOTH SHOULD DEPEND UPON ABSTRACTIONS

B. ABSTRACTIONS SHOULD NOT DEPEND UPON DETAILS. DETAILS SHOULD DEPEND UPON 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