Quiz
Identifying Common Design Patterns
Distinguish the Factory pattern from Strategy and Observer by their intent.
You need a class whose subclasses decide which concrete product object to instantiate, so client code depends only on an interface and not on concrete classes. Which pattern best fits this intent?