Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在生成预定义工厂的实例。假设我正在生成的对象是 AppleFactory。AppleFactoryFactory 看起来很糟糕。这种对象的常见方案是什么?
抽象工厂。
你可以在其中生成任何你想要的工厂