Executes the rest of the constructor.
执行构造函数的剩余部分。
Register the attributes in the constructor.
在构造器中注册属性。
Initialize your factory (in the constructor).
初始化您的工厂(在构造函数中)。
In the constructor you'll initialize them both.
在构造函数中,您将初始化这两个变量。
Then set options as arguments to the constructor.
然后,通过构造函数的参数来设置选项。
They can only be initialized through the constructor.
它们只通过构造函数初始化。
Move the initialization code for factors to the constructor.
将factors的初始化代码移到构造函数中。
It has two methods, the constructor and the GetParameter.
它有两个方法,构造函数和GetParameter方法。
Therefore, let's modify the constructor as shown in Listing 6.
因此,我们要修改清单6所示的构造函数。
Do not provide any mutating methods other than the constructor.
除构造函数之外,不再提供任何的可变方法。
This code is part of the constructor for the WorldClock portlet.
这些代码是WorldClock portlet的构造器的一部分。
It reads the namespaces only one time in advance in the constructor.
它只在构造函数内提前读取一次名称空间。
In an initializer block, which executes just before the constructor.
在一个初始化块中,仅在构造函数之前执行。
Overriding methods in a parent class is not limited to the constructor.
父类中的重写方法不仅局限于构造函数。
You can turn on namespace awareness in the constructor, but I rarely do.
您在构造函数中启用名称空间感知,但我很少这样做。
The most commonly implemented of these methods is the constructor method.
最常实现的方法是构造函数方法。
The path to the plug-in specific JSP is passed in through the constructor.
特定于插件的JSP 的路径通过构造函数传入。
When you initiate the class, the constructor loads your Facebook plug-in.
您启动类时,构造函数会加载您的Facebook插件。
Any parameters that the constructor requires are listed after the class name.
构造函数所需要的任何参数被列于类名之后。
Recall that the constructor takes the cache object as an optional argument.
回想一下,构造函数以可选参数的方式接受缓存对象。
Look at the constructor and ensure that only the desired strings are created.
看看构造函数,确保只创建了需要的字符串。
Then, add the following code snippet directly below the constructor described above.
然后,在上面描述的构造函数的下方直接添加下列代码片断。
Parameters are added to the constructor similarly to how you add parameters to method.
向构造方法添加参数的方式类似于向方法添加参数的方式。
You even have to supply that external file as part of the constructor, as in Listing 1.
您甚至必须提供相应的外部文件作为构造函数的一部分,如清单1所示。
The dependency will be injected through the constructor. You instantiate a container.
该依赖关系将通过构造函数被注入。
If the constructor includes no such explicit call, a call to super is implicitly added.
如果构造函数没有包含这样的显式调用,将隐式添加对super的调用。
In this case you are passing in two named parameters to the constructor of HttpRequest.
在本例中,您将两个命名参数传递给HttpRequest的构造函数。
The PathDirectory class takes an array of path Strings as the constructor parameter.
PathDirectory类取路径String数组作为构造函数参数。
In V5, the method that initializes the object (the constructor) is called __construct.
在PHP V 5中,初始化对象(构造程序)的方法称为__construct。
For example, you could initialize such resources in the constructor of the SubTask class.
例如,您可以在subtask类的构造函数中初始化这类资源。
应用推荐