Foundations

What is Factory Method?

A method that lets subclasses decide which concrete type to build while sharing the same creation steps.

Learn this term every day on iPhone.

One hand-written term. A real workplace example. Thirty seconds before your day gets loud.

In real work

Factory method: Document.createExporter() picks PDF or CSV based on the document subclass.

How is this different from Googling it?

Google gives a definition. Prompthaus pairs each term with how it shows up in standups, PRs, prompts, and design reviews—then quizzes you until the word sticks. One term a day on iPhone.