Creational Patterns
Smart ways to create objects — factories, builders, and more.
5 lessons · follow them in order, or jump to what you need.
Factory Method Pattern: Let the Branch Decide the Vehicle
Learn the Factory Method design pattern with a simple Indian tiffin service story, easy TypeScript and C# code, diagrams, real examples, and practice.
Abstract Factory Pattern: One Order, One Matching Thali
Understand the Abstract Factory design pattern through an Indian wedding catering story, with simple TypeScript and Python code, diagrams, and practice.
Builder Pattern: Stitch It Step by Step, Like a Master Tailor
Learn the Builder design pattern with an Indian tailor shop story, fluent TypeScript and C# code, the telescoping constructor problem, and practice tasks.
Prototype Pattern: Make Copies Like a Xerox Machine, Not From Scratch
Learn the Prototype design pattern with a simple wedding card story, easy TypeScript and Python examples, and a clear shallow vs deep copy demo.
Singleton Pattern: One Principal for the Whole School
Understand the Singleton design pattern with a school principal story, simple TypeScript and C# code, thread safety, and why many seniors call it an anti-pattern.