• This class is just a dummy class I use to reinforce the point that RMock is necessary for mocking classes in which constructors receive object parameters.

    此类只是使用虚构,用于强化一个要点:要模拟构造函数接收对象参数的必要使用RMock

    youdao

  • If you want to declare a "real" (that is, useful) Dojo class, it's important to understand constructors.

    如果希望声明一个真正的”(有用的)dojo那么一定理解构造函数

    youdao

  • For instance, when I create a new class, I no longer spend any time writing setters and getters (accessors). I don't write most of the constructors.

    例如创建不再时间编写settergetter(访问器),也不用编写大部分构造器

    youdao

  • Reflection is the runtime discovery of information, such as methods, fields, and constructors, about a given class or interface.

    反射运行时发现关于给定接口信息方法字段构造函数

    youdao

  • But you cannot use a type parameter to access a constructor because, at compile time, you don't know what class is being constructed and therefore what constructors are available.

    但是不能使用类型参数访问构造函数,因为编译时候知道构造什么因此就不知道使用什么构造函数。

    youdao

  • The primary constructor in a derived class must invoke one of the parent class constructors, either the primary constructor or an auxiliary constructor.

    子类构造函数必须调用一个构造函数,无论是主构造函数或者辅助构造函数。

    youdao

  • Thus, when a type parameter t is used as the superclass of a generic class, the annotation on t tells us exactly what super-constructors we can call.

    因此类型参数t用作泛型超类时,T注释确切地告知我们可以调用哪些超级构造函数。

    youdao

  • Declaring all these constructors in each class could get tedious after a while, but we explored techniques in Chapter 4, Traits that can eliminate repetition.

    所有声明这些构造函数可能乏味的,但是我们《第4- Traits》中探索技巧可以帮助我们减少这样的重复。

    youdao

  • The Class reflection calls to access field information are similar to those used to access constructors, with a field name used in place of an array of parameter types.

    获得字段信息Class反射调用不同于那些用于接入构造函数的调用,参数类型数组使用字段

    youdao

  • Because Timer is a class rather than an interface and the threads are actually spun off in that class's constructors, an application server cannot modify this behavior.

    因为Timer不是接口而且线程实际构造函数中产生的,所以应用服务器不能修改这种行为。

    youdao

  • With the original version of the Motorcycle class, use the Source menu to generate a few constructors, like those shown in Listing 6.

    在 Motorcycle原始版本使用Source菜单生成几个构造函数清单6 中所

    youdao

  • Note how the abstract class defines a constructor that takes a Map of properties - I can always add more constructors later, and I will shortly.

    注意抽象如何定义构造函数,该函数接收属性一个map总是可以稍后添加更多构造函数,稍后我就会这么做。

    youdao

  • If you look closely at the description for the list class in Listing 2, you'll see that two different constructors are provided. One takes no arguments, and the other takes a sequence class.

    如果仔细观察清单2list描述看到其中提供了两个不同的构造函数:没有参数接受一个序列类作为参数。

    youdao

  • Two constructors are defined on the class: one taking an int and one taking a pair of ints.

    中定义构造函数:个构造函数带有一个int参数,另一个带有两个int参数。

    youdao

  • A class may define several constructors, each of which must take a different number or type of arguments.

    一个可以定义几个构造函数,每个构造函数必须接受不同数目或者不同类型参数

    youdao

  • Content Assist can now propose the available constructors of a class when the completion happens in an allocation expression.

    当在分配表达式(allocation expression)时发生补全操作,内容助手现在可以提示可用构造方法。

    youdao

  • There is a definition for the class EggTrayIcon, the constructors, then the methods send_message and cancel_message.

    该文件中含有eggtrayicon定义构造函数以及方法send_messagecancel_message。

    youdao

  • So, your class has two constructors, one with a function pointer and the other without it.

    所以类将两个构造器函数指针一个没有

    youdao

  • One possible implementation is to use this method as a hook into your own private class initialization routines that are not already enabled by constructors.

    一个可能的实现方法用作构造函数尚未启用自己的私有初始化例程挂钩

    youdao

  • A class's members include all the members declared in the class, along with all members (except constructors and destructors) declared in all classes in its inheritance hierarchy.

    成员包括声明所有成员,以及该类的继承层次结构中的所有中声明的所有成员(构造函数析构函数除外)。

    youdao

  • A class can have multiple constructors. Each constructor must differ from the others in the number or types of its parameters.

    一个可以多个构造函数,每个构造函数必须其他构造函数不同数目类型参。

    youdao

  • There is a third possibility: The element type might be of a class type that does not define any constructors.

    还有第三可能性元素类型可能没有定义任何构造函数类型。

    youdao

  • Describes how to define a class with fields, methods, and constructors.

    描述如何定义具有字段方法构造函数

    youdao

  • If a class has one or more private constructors and no public constructors, other classes (except nested classes) cannot create instances of this class.

    如果具有一个多个私有构造函数没有公共构造函数,则其他(嵌套类外)无法创建该类实例

    youdao

  • A class or struct may have multiple constructors that take different arguments.

    一类结构可以多个构造函数不同参数。

    youdao

  • A class or struct may have multiple constructors that take different arguments.

    结构可能多个接受不同参数的构造函数。

    youdao

  • Because the state of the call stack in a class constructor is not well defined, stack walk overrides placed in constructors can produce unexpected and undesired results.

    由于构造函数中的调用堆栈状态定义完善,所以放置构造函数中的堆栈重写可能会产生意外结果

    youdao

  • A link demand performed on a static class constructor does not protect the constructor because static constructors are called by the system, outside the application's code execution path.

    静态构造函数执行链接要求不会保护构造函数,因为静态构造函数系统调用的,它们并不包括应用程序代码执行路径中

    youdao

  • A typical use of static constructors is when the class is using a log file and the constructor is used to write entries to this file.

    静态建构式通常类别使用记录,而建构式被用来项目写入该档案。

    youdao

  • A typical use of static constructors is when the class is using a log file and the constructor is used to write entries to this file.

    静态建构式通常类别使用记录,而建构式被用来项目写入该档案。

    youdao

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

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

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