When you have attributes in a class, you need to be able to initialize these attributes with some initial values.
当您在一个类中拥有一定的属性时,您应该能够利用一些初始值来初始化这些属性。
First, you need to initialize the counter variable as follows.
首先,需要按如下方式对计数器变量进行初始化。
This section goes through the steps to initialize an agent.
本节给出了初始化代理的各个步骤。
To initialize GridLayout, you simply set the number of columns.
为了初始化gridlayout,您只要设置列数。
Scala also requires you to initialize a var when it is declared.
Scala同时也要求你在声明一个var时将其初始化。
There is no constructor defined to initialize it to another value.
我们没有声明构造函数用其它值来初始化它。
And I'm going to initialize it, create them, with an opening price.
我要对它进行初始化,给它们一个初始价格然后创建它们。
This allows JSF to initialize the JSF context and the view root.
这允许JSF初始化jsf上下文和视图根。
First we never overwrite a quantum bit except to initialize it to "0".
首先,除了要把量子位初始化为“0”,我们绝不重写它。
To start, SWT USES shell and display to initialize and draw the Windows.
为了开始,SWT使用shell和显示来初始化和描绘窗口。
In general, different classes have various ways to initialize new instances.
通常,不同的类拥有各种方法来初始化新实例。
For example, an add-in PCI card might use this approach to initialize an FPGA.
例如,插件pci卡可能使用此方法来初始化fpga。
Using a procedure to initialize the temporary table yields three key benefits.
使用过程来初始化临时表可带来三个主要优点。
The server will load this name during startup and invoke this name to initialize.
服务器在启动时装入这个名称并调用这个名称来初始化。
Invoke Custom service Factory during runtime to initialize a service object.
在运行过程种调用CustomServiceFactory来实现服务对象的初始化。
There must be a class to initialize that variable; the code is shown in Listing 8.
必须有一个类来初始化这个变量;代码见清单8。
To initialize and install the model, run the synchronize database command, syncdb.
为了初始化并安装这个模型,请运行数据库命令syncdb。
Seam USES the factory pattern to initialize non-component objects and collections.
Seam使用工厂模式初始化非组件对象和集合。
In my next column, I plan to write a wizard plug-in to initialize a new XM project.
在我的下一篇专栏文章中,我打算编写向导插件来初始化新的XM项目。
Next, you need to initialize some of the variables that the process USES later.
接下来,您需要初始化该流程后面要使用的一些变量。
Listing 4 shows how to initialize the XMLHttpRequest for cross-browser support.
清单4展示了如何初始化xmlhttprequest来实现跨浏览器支持。
A table step occasionally needs to initialize the table with some default values.
表步骤有时需要使用一些缺省值初始化表。
The recommendation from FxCop is to initialize static fields where they are declared.
FxCop建议在声明静态字段的位置对其进行初始化。
In this step, select the Initialization Options to initialize assets from a datastore.
在此步骤中,选择InitializationOptions由数据存储库来初始化资产。
Note that this requires all XUIComponents' constructors to initialize these values.
注意,这要求所有XUIComponent的构造器初始化这些值。
It's up to the installation to initialize the products that you need for development.
由安装过程负责初始化开发需要的产品。
Add methods to the mock object that allow you to initialize it properly for your tests.
在模拟对象里添加方法,使得您的测试正确地初始化。
In some cases, it is required to initialize variables before they are used in a process.
在某些情况下,在过程中使用变量之前需要初始化变量。
If there is no target attribute, then you use a custom callout transform, to initialize values.
如果不存在目标属性,则您将使用自定义调出转换来初始化值。
If there is no target attribute, then you use a custom callout transform, to initialize values.
如果不存在目标属性,则您将使用自定义调出转换来初始化值。
应用推荐