From factory method to abstract factory.
从工厂方法到抽象工厂。
At this point, you may be tempted to go one step further and replace the factory method with a full-fledged abstract factory object, as detailed in Design Patterns by Erich Gamma, et al.
此时,您可能很想更进一步并用成熟的抽象工厂对象替换工厂方法,如Erich Gamma等人在设计模式中详细描述的那样。
Abstract Factory vs Factory method: Composition vs Inplement?
抽象工厂与工厂方法:组成与实现?
应用推荐