You use the factory method pattern when an application needs to create objects whose type depend on the implementation of subclasses.
您可以在应用程序需要创建其类型依赖于子类的实现的对象时,使用工厂方法模式。
The factory method pattern, as its name implies, defines the implementation of a method used to churn out objects.
而工厂方法模式,顾名思义,定义的是一个用来大量产出对象的方法的实现。
To create an instance of the Factory Method Pattern, perform the same steps as for the Singleton Pattern.
要创建Factory方法模式的实例,执行同Singleton模式相同的步骤。
Concrete classes provide the appropriate implementation for their respective base class. The Factory Method Pattern consists of the following classes.
concrete类为它们各自的基类提供恰当的实现。
This is a typical example of the Factory Method Pattern.
这是个典型的Factory方法模式实例。
Now, let us make sense of this definition for the Factory Method pattern.
现在,让我们在这个意义上定义的工厂方法模式。
It describes two kinds of design patterns in COM in detail: Factory Method pattern and Proxy pattern, and tells how to realize the former.
接着具体讲述了组件对象模型中使用的两种设计模式:工厂方法模式和代理模式。
The "Cockerel design" is manufactured by hand during 2007-2008 at the Old Factory, in the museum part of Jingdezhen area, the plates moulded by hand and the pattern put on with a paper method.
该公鸡图案是2007-2008年期间在景德镇博物馆的一部分,即为老瓷器厂内手工绘画而成,器形用模具而成并用纸贴固定图案的方法。
The "Cockerel design" is manufactured by hand during 2007-2008 at the Old Factory, in the museum part of Jingdezhen area, the plates moulded by hand and the pattern put on with a paper method.
该公鸡图案是2007-2008年期间在景德镇博物馆的一部分,即为老瓷器厂内手工绘画而成,器形用模具而成并用纸贴固定图案的方法。
应用推荐