What is Factory Method?
A method that lets subclasses decide which concrete type to build while sharing the same creation steps.

same steps · subclass picks die
Factory method delegates type choice to…
Write it in your own words in the app.
In real work
Factory method: Document.createExporter() picks PDF or CSV based on the document subclass.
In the illustration
Feed, press and eject run identically twice: first with the PDF document's die cartridge slotted in, then the CSV document's; out come a PDF exporter and then a CSV exporter.
Replace the switch statement that builds exporters in your coding agent with a factory method on the Exporter base type, so a new format means one new subclass and no edits to callers.
Try it now
The fastest way to learn a word is to use it. Open this line in the agent you already work in and watch what it does. Change the tool to the one you use.
Go further
01Practice
Make it stick
One term a day, a short quiz, and sentence practice that checks your own words.
02Verify
Prove you know it
Pass the quiz and keep it in a Skills Wallet you can share with anyone who needs proof.
03Career
Find the work that uses it
See which roles lean on this vocabulary, and what they pay in year one.





