Programming Fundamentals

The object-oriented ideas every pattern builds on: polymorphism, encapsulation and dynamic dispatch, each with a narrated video and Java code.

3 lessons

Encapsulation

Twelve bikes, thirteen riders, and every field private. Learn what encapsulation really protects: the object's promise, and the decisions likely to change.

Polymorphism

A new filter plugs right in, and breaks the before-and-after slider. Learn what polymorphism really asks of every implementation: one role, many actors, and the promise behind it.

Dynamic Dispatch

One line of code, many behaviors. Learn how Java decides which method runs: the compiler reads the label, the runtime opens the box.