Abstract Factory
- 作者:xiaoxiao
- 发表时间:2020-12-23 10:58
- 来源:未知
Benefits: It isolates client from concrete (implementation) classes. It eases the exchanging of object families. It promotes consistency among objects.
Applicable Scenarios: The system needs to be independent of how its objects are created, composed, and represented. The system needs to be configured with one of a multiple family of objects. The family of related objects is intended to be used together and this constraint needs to be enforced. You want to provide a library of objects that does not show implementations and only reveals interfaces.