Home / cs-notes / Design / Design Patterns / Summary / Builder vs Factory Method
Intent
- Builder
- create the same kind of products with different components or parts
- Factory Method
- create products of different subclasses
Focus
- Builder
- focus on details of parts
- Factory Method
- focus on the whole product