Polymorphism

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.

November 25, 20269 minutes

Switch Statements

One new device, three silent bugs. Learn why the smell is the same switch repeated, how to replace it with a class per kind, and when an exhaustive switch is the right answer.

November 25, 20269 minutes

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.

November 24, 202611 minutes

State Pattern

One object, one button, different behavior. Learn how the State pattern groups code by state instead of by event, with diagrams, Java examples, and a narrated video.

November 24, 202612 minutes

Strategy Pattern

One trip, three routes. Learn how the Strategy pattern keeps the what in one place and lets the client swap the how, with diagrams, Java code, lambdas, and a narrated video.

November 24, 202612 minutes