• What if the code we have uses a concrete class in its implementation?

    如果我们拥有代码执行使用一个具体怎么办?

    youdao

  • If you only have a concrete class, you can create an interface from the class, change your application code to program to the interface, and then proceed as described above.

    如果只有具体,那么您可以创建接口应用程序代码改写接口,然后按照前面描述继续进行。

    youdao

  • For DI to work, you must have an interface whose concrete class you can inject into the consumer of the behavior you desire.

    为了让DI工作必须拥有一个接口可以把这个接口具体注入到需要的行为的消费者中。

    youdao

  • Because only skeleton code is generated, you must next provide concrete implementation code for each class.

    因为生成了框架代码接下来必须每个提供具体实现代码。

    youdao

  • Create a mock object class as a subclass of the concrete class.

    创建模拟对象作为具体中的一个子类

    youdao

  • The value object in Listing 2 looks almost identical to our remote interface, but it's actually a concrete class.

    清单2中的对象看起来我们远程接口几乎相同实际上具体

    youdao

  • Figure 7 presents the persistence model when each concrete class is mapped to a data entity.

    7显示了每个具体映射数据实体持久性模型

    youdao

  • In this way, you can change the concrete class later without changing the library code, which relies solely on the definition you created in the interface.

    这样日后可以改变代码的情况下修改具体因为依赖接口创建定义

    youdao

  • Client classes can be coded to require only the abstract type, leaving the strategies and outcomes of implementation to the concrete class instances passed to them at run time.

    客户机编码需要抽象类型,而实现策略结果留给运行传递它们具体实例

    youdao

  • Another class of concrete models is based on declarative languages.

    具体模型另一个类别基于声明语言的。

    youdao

  • If an operation is declared as abstract then the inheriting class must provide a concrete implementation.

    如果某项操作宣布抽象那么继承必须提供了一个具体的实施方案。

    youdao

  • All you've done here is take the same signature you used for the method in the actual concrete class.

    在这里完成所有操作获得用于实际具体方法同一个签名

    youdao

  • The class can be either an interface or a concrete class.

    这个可以是个接口,也可以是个明确的类。

    youdao

  • You can simply instantiate it programmatically, but then your code will depend on a concrete implementation class.

    可以简单编程方式对其进行实例化但是这样的话代码依赖具体实现类。

    youdao

  • A class (whether abstract or concrete) that implements an interface does not really inherit anything from the interface it implements.

    (不管是抽象还是具体的)实现接口并不真正实现接口继承任何东西

    youdao

  • The above line pairs the fully qualified class name of the concrete remote service class with a path name that is essentially the URL for this service.

    上面一行具体远程服务限定实质上为此服务url路径组成一对

    youdao

  • Using one data entity per concrete class.

    每个具体使用一个数据实体

    youdao

  • Strategy 3: One table per concrete class (Estates).

    策略3每个具体一个(estates)。

    youdao

  • Our third and last strategy is probably the most imaginative of all: having one table per concrete class and none for the Estate abstract superclass.

    我们第三个,也是最后策略可能三个策略当中最有想象力的:每个具体一个抽象超类estate没有表。

    youdao

  • Scenario 3: Use jMock and RMock to mock a concrete class with a nondefault constructor

    场景3使用jMockRMock 模拟带有非默认构造函数具体

    youdao

  • First, much of the work done by a concrete class is specified in the docstrings of methods.

    首先具体完成大部分工作方法的文档字符串(docstring)中指定

    youdao

  • A concrete class that implements the DAO interface.

    一个实现dao接口的具体

    youdao

  • ScriptEngineManager is probably the only concrete class in the scripting package you'll use regularly; most of the rest are interfaces.

    ScriptEngineManager可能脚本惟一一个经常使用具体其他大多数接口

    youdao

  • You now have a concrete JUnit TestCase class that can be treated as if the suite composite were statically defined.

    现在就有了一个具体JUnitTestCase可以静态定义的包那样处理它。

    youdao

  • Instead of accepting an ICollaborator interface, it now accepts a concrete class implementation (the Collaborator class).

    现在接受ICollaborator接口接受具体实现(collaborator类)。

    youdao

  • The powerful as operator in Groovy takes a code block and generates a new class that implements the interface, which you can then call as if it were a concrete class implementing the interface.

    Groovy强大的as操作符接收代码生成一个实现接口可以调用实现该接口的具体类一样调用

    youdao

  • Typically this is implemented by having an abstract class that has a static create method that returns a concrete object implementing the abstract class.

    这种模式的典型实现方式创建抽象,其中具有静态方法create,这个方法返回的是实现了这个抽象类的一个具体对象

    youdao

  • You can achieve some code separation if you represent the concrete Customer Persistence class as an interface instead.

    如果换用接口来表示Customerpersistence可以实现一些代码分离

    youdao

  • Table per-class: (Optional) Each concrete subclass is mapped to a table and contains columns for super class attributes.

    按类表:(可选)每个具体子类映射一个并且包含属性的

    youdao

  • The concrete DAO class contains logic for accessing data from a specific data source.

    具体dao包含访问特定数据源数据逻辑

    youdao

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

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

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