<DS/>DS_VISUALIZER
FoundationsOOPArraysLinked ListStacksQueuesTreesGraphsHashingStrings
exploreExplore
homechevron_rightTopicschevron_rightOopschevron_rightFour Pillars
account_balance

OOP · FOUR PILLARS

The Four Pillars

Encapsulation, inheritance, polymorphism, abstraction — the load-bearing ideas.

Choose a pillar

shieldarrow_outward

Encapsulation

Guard state behind methods — invariants survive.

◍ 0/6
account_treearrow_outward

Inheritance

IS-A: derived objects carry their parent's layer.

◍ 0/6
sync_altarrow_outward

Polymorphism

One interface, many behaviours — chosen at compile time or runtime.

categoryarrow_outward

Abstraction

Promise the WHAT, hide the HOW — abstract classes.

◍ 0/6