Lesson
Vocabulary: Abstract Factory
Vocabulary after construction: Abstract Factory
The previous exercise began with Expected Behavior and design pressure, not with this name.
The structure that emerged is traditionally called Abstract Factory.
What the reasoning established
- Stable role: One factory owns creation of a compatible product family.
- Change pressure: Environment families can vary as a unit.
- Ownership/lifetime when relevant: The selected factory defines the scope for all family members.
- Structural consequence: Related products are created through the same family object.
- Runtime topology: Ask one factory for each required product.
Nearby distinction
Factory Method: Abstract Factory creates a compatible family from one choice; Factory Method focuses on one product creation decision.
Simplify
Ask whether any abstraction can be removed while preserving the original acceptance behavior and design-stress property. If yes, prefer the simpler design.
Use the pattern name to communicate a structure you can already justify. Do not use the name as a recipe that replaces requirements analysis.
Sign in with an enabled provider to save your lesson progress.
Sign in to track progress
Loading sign-in options…