使用清单2的代码实现构造器例程。
不要使用Function构造器。
类的剩余部分就是一些基本的构造器。
您必须具有公共缺省构造器。
接下来,注意frame的命名参数构造器。
该类通常有一个“init”前缀的构造器。
The class generally has a constructor that is prefixed with "init."
事件对象数据字段将成为中间对象的字段构造器。
The event object data field will be the field constructor of the intermediate object.
命令提供程序将使用这些构造器创建或加载步骤。
The command provider will use these constructors to create or load a step.
我们在这里使用了一个对象构造器。
实际上,零参数构造器就是建立一个这样的空链表。
In fact, the zero-argument constructor sets up just such an empty list.
message类实现两个构造器,如清单7所示。
The Message class implements two constructors, as shown in Listing 7.
类必须有一个标准的公用的无参的构造器。
The class must have a standard public, no arguments constructor.
所有步骤都应提供两个构造器,以创建和加载命令步骤。
All steps should provide two constructors to create and load the command step.
为了解决这些,构造器必须留意第一个参数。
To solve this, have the constructor heed its first argument.
该类的实例用作XMLToSQL构造器的一个参数。
An instance of this class is used as an argument to the XMLToSQL constructor.
这称为构造器注入。
相反,您把表实例传入TableColumn构造器中。
Instead, you pass the table instance in the TableColumn constructor.
在我们的例子中,构造器接收了一个表示超类名称的字符串。
In the example shown here, the constructor accepts a string that represent the superclass name.
创建一个构造器。
initComponent构造器调用的方法。
通过定义合理的构造器集合通常是最简单的途径。
Defining the reasonable set of constructors is often the simplest approach.
事实上,您也不希望构造器设置版本控制数据的样式。
Indeed, you don't want the builder to style versioning data.
如果没有可用的delta,构造器必须执行完全构建。
If a delta is not available, the builder should perform a full build.
PdfTextVerificationPoint类拥有两个构造器,如代码清单3所示。
The PdfTextVerificationPoint class has two constructors, as shown in Listing 3.
实例初始化器允许您为一个匿名内部类执行构造代码。
Instance initializers allow you to execute construction code for an anonymous inner class.
清单6提供了一个智能自动调温器的任务(或配方构造)描述。
Listing 6 provides the task, or recipe construct, description of a smart thermostat.
请注意,站点的构造函数接受设计器宿主实例。
Note that the site's constructor accepts a designer host instance.
现在可以构造包装器元素line - item了。
构造故障注入器是故障注入研究中的一个重要组成部分。
A major step in the research of fault injection is to construct a fault injector.
这样处理的好处是便于构造正确性可证明的编译器设计的理论基础。
The benefit is that one can build up the theory of correctness provable compiler easily.
应用推荐