Class Factory Method的意思|示意
类工厂方法
Class Factory Method的网络常见释义
类工厂方法 ...P 面向对象编程(OOP),类和对象; 继承和组合,self和super关键字,属性(Property); 类工厂方法(Class Factory Method); 单例模式(Singleton),委托模式(Delegation); 内存堆栈模型,内存管理(引用计数、ARC); 自省(Introspective), SEL...
Class Factory Method相关例句
The Factory Method Pattern defines an interface for creating an object, but lets subclasses decide which class to instantiate.
工厂方法模式定义了一个创建对象的接口,但由子类决定实例化的逻辑。
The Factory Method Pattern is a creational pattern that defines an interface for creating an object but lets subclasses decide which actual class to instantiate.
Factory 方法模式是一个创建的模式,它定义一个用来创建对象的接口,而让子类来决定实例化哪个类。
The code in Listing 2 takes as input the actual XML instance and USES the parse method of the Factory class of AutomobilePolicyDocument to get an instance of AutomobilePolicyDocument.
清单2的代码接受输入的xml实例,并使用AutomobilePolicyDocument Factory类的parse方法获得AutomobilePolicyDocument实例。
In Listing 2, the code first includes the necessary class file for the MDB2_Schema package, and then initializes the MDB2 abstraction layer by calling its static factory method.
在清单2中,代码首先包含了MDB2_Schema包所需的类文件,然后通过调用其静态方法factory以初始化mdb2抽象层。
Concrete classes provide the appropriate implementation for their respective base class. The Factory Method Pattern consists of the following classes.
concrete类为它们各自的基类提供恰当的实现。
The first class USES a constructor to initialize the properties, and the second class USES a static factory method.
第一个类使用构造函数初始化属性,第二个类使用静态工厂方法。