Interview Prep

Design Patterns

25 Gang of Four patterns - Creational, Structural, and Behavioral. Each with intent, code examples, and interview angles.

6 patterns

Creational

How objects are created - control instantiation, hide complexity, avoid direct new calls.

7 patterns

Structural

How objects are composed - build flexible structures from simple parts.

12 patterns

Behavioral

How objects communicate - define algorithms, delegate responsibilities, manage state.