• 一个静态泛型工厂方法

    A static factory method on a generic or a non-generic class?

    youdao

  • 工厂方法返回用于一个特定服务适配器

    The class returned by the factory method is an adapter to a particular cloud service.

    youdao

  • 它们实例方法那样常见将会经常看到一些方法,它们作为创建新的实例工厂方法免得您必须进行分配初始化

    These are not as common as instance methods, but you will often see class methods that are factory methods for creating new instances of the class; this saves you from having to alloc and initialize.

    youdao

  • 因为我们覆盖工厂方法编写这个测试所以其结果是:我们的测试不再包括任何原始创建代码(现在工厂方法内部)。

    Because we overrode the factory method to write this test, it turns out that we no longer have any test coverage of the original creation code (which is now inside the base class's factory method).

    youdao

  • 调用工厂方法断言返回对象具有正确一样简单

    This can be as simple as invoking the base class's factory method and asserting that the returned object is of the correct type. For example.

    youdao

  • bosession提供创建实例静态工厂方法封装用来访问Notes数据库的NotesSession实例。

    The BOSession class offers static factory methods to create an instance of this class which encapsulates a Notes Session instance used to access the Notes database.

    youdao

  • 这个工厂变成相互依赖的工厂方法构成的巨型蜘蛛网。

    This factory is going to become a huge spiderweb of interdependent factory methods!

    youdao

  • 定义用于创建对象的接口决定实例工厂方法使一个实例化延迟其子

    Define an interface for creating an object, but let subclasses decide which class to instantiate. Factory Method lets a class defer instantiation to subclasses.

    youdao

  • 第一使用构造函数初始属性第二使用静态工厂方法

    The first class USES a constructor to initialize the properties, and the second class USES a static factory method.

    youdao

  • 定义用于创建对象的接口决定实例工厂方法使一个实例化延迟

    Define an interface for creating an object, but let subclass decide which class to instantiate. Factory Method lets a class defer instantiation to subclasses.

    youdao

  • 工厂方法一个实例化延迟中进行

    Factory Method lets a class defer instantiation to subclasses.

    youdao

  • 工厂方法一个实例化延迟中进行

    Factory Method lets a class defer instantiation to subclasses.

    youdao

$firstVoiceSent
- 来自原声例句
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定
小调查
请问您想要如何调整此模块?

感谢您的反馈,我们会尽快进行适当修改!
进来说说原因吧 确定