定义:The Abstract Factory Pattern provides an interface for creating families of related or dependent objects
without specifying their concrete classes.
一句话:为了实现一组对象的创建,用object composition,每个object都可以用Factory Method Pattern来实现
类比:Factory Method针对一个对象,Abstract Factory针对一坨对象。
一句话:为了实现一组对象的创建,用object composition,每个object都可以用Factory Method Pattern来实现
类比:Factory Method针对一个对象,Abstract Factory针对一坨对象。