<DS/>DS_VISUALIZER
FoundationsOOPArraysLinked ListStacksQueuesTreesGraphsHashingStrings
exploreExplore
homechevron_rightTopicschevron_rightOopschevron_rightSolid Principles
verified

OOP · SOLID

SOLID Principles

Five guidelines that keep class designs flexible and changeable.

Choose a principle

filter_1arrow_outward

Single Responsibility

One class, one reason to change.

◍ 0/6
lock_openarrow_outward

Open/Closed

Open to extension, closed to modification.

◍ 0/6
swap_vertarrow_outward

Liskov Substitution

Subtypes must be drop-in replacements.

◍ 0/6
call_splitarrow_outward

Interface Segregation

No client forced to depend on unused methods.

◍ 0/6
fliparrow_outward

Dependency Inversion

Depend on abstractions, not concretions.

◍ 0/6