Every Ruby class has a constructor method called new.
每个Ruby类有一个名为new的构造函数方法。
Four noteworthy aspects of the constructor method are.
构造函数方法中值得注意的四个方面是。
The method ID indicates which constructor method to invoke.
方法ID指示应调用的构造函数方法。
Note that ConnPool's constructor method (called __construct) is empty.
注意到ConnPool的构造函数方法(called __construct)是空的。
The most commonly implemented of these methods is the constructor method.
最常实现的方法是构造函数方法。
The constructor method initializes its super class with the MySQL domain package.
构造器方法会使用My SQ l域包来初始化它的超类。
The constructor method begins by verifying that the data is in a form suitable for processing.
构造函数方法从验证数据形式是否适合于处理开始。
Kind of, (but not really), like how the __ is used with magic methods such as the constructor method.
种,(但不是真的),怎么像是用魔术方法__如构造函数方法。
The constructor method initializes, or enables, your theme and loads common data used throughout the theme.
建构式方法初始化或启用外观主题并读取用在整个外观主题中的常规数据。
A good analogy for a constructor method is a building contractor, who takes the blueprints for your house and builds it.
构造函数方法好比建筑承包人,它利用房子的设计图建房子。
The constructor method uses the normalize method to ensure that the override value strings do not contain symbols used by XML parser.
构造函数方法使用标准化的方法来确保重载值中不包含XML 解析器所使用的符号。
The constructor method for the SimpleLinearRegression class accepts an X and a Y vector with the same number of values in each vector.
simplelinearregression类的构造函数方法接受一个X和一个Y向量,每个向量都有相同数量的值。
For details on how each instance variable is computed, you can look at the constructor method for the class where all these values are derived.
关于如何计算每个实例变量的详细信息,可以查阅该类的构造函数方法,所有这些值都源自那里。
Your class constructor should invoke the constructor method for the parent class, in addition to anything it does that is specific to your class.
自定义的类构造器应该调用父类的构造器方法,做除这之外的任何事情是指定到你的类。
The new MyAttributeValidator class consists of one constructor method, the inherited validate(…) method, and the createNotNullOrZeroStatus(…)helper method.
新的MyAttributeValidator类由一个构造器方法,一个继承validate(…)
Understand and grasp the object as a class to another class as data members, using initialization table call the constructor method, constructor execution order.
理解并掌握当一个类的对象作为另一个类的数据成员时,利用初始化表调用构造函数的方法、构造函数的执行顺序。
This flag allows the runtime to execute the type constructor method at any time it chooses, as long as the method executes before the first access to a static field for the type.
此标志使得运行库能够在任何时候执行类型构造函数方法,只要该方法在第一次访问该类型的静态字段之前执行即可。
The constructor method reads the configuration parameters file as properties and converts these properties into URI/value pairs as defined by the deployment descriptor schema (Figure 1).
构造函数读取配置参数文件作为属性并将这些属性转换成URI/值对,这些值对是由部署描述符模式定义的(图 1) 。
The only trick here is that I need to output the list of parameters to each constructor or method.
这里惟一的诀窍是,我需要将参数列表输出到每个构造函数或方法中。
The constructor also invokes a method to load some configuration properties.
该构造器还调用一个方法来加载一些配置属性。
These classes define methods for modifying all aspects of the item represented by the class, including the actual bytecode body of a method or constructor.
这些类定义了修改由它们所表示的对象的所有方法的方法,包括方法或者构造函数中的实际字节码内容。
If the class has a no-args constructor, and you want to use that constructor and then immediately invoke a single instance method on it, there's a shortcut.
如果该类具有一个无参构造函数,您想使用这个构造函数,然后立即在其上调用一个实例方法,那么有一种捷径。
Parameters are added to the constructor similarly to how you add parameters to method.
向构造方法添加参数的方式类似于向方法添加参数的方式。
A constructor is just a special method that creates an instance (or object) of a particular class.
构造函数只是创建特定类实例(或对象)的特殊方法。
Two singletons will be created if the constructor runs and simultaneously another thread calls the method.
当该构造方法运行的同时,恰好被另一线程访问,两个单例对象将被创建。
The method and constructor templates are similar to the field template, as Listing 4 shows.
方法和构造函数模板与字段模板类似,如清单 4 所示。
Invoking this method executes the rules that were previously loaded in the class's constructor.
调用该方法执行先前加载到类构造函数中的规则。
This is extremely simplistic and leads to an exception being thrown when a constructor or method is called with the wrong argument types.
这极为简单,使用错误的参数类型调用构造函数或方法时,会引发异常。
In PHP V4, you create a constructor by declaring a method with the same name as that of the class.
在PHPV 4中,通过声明与类同名的方法来创建构造函数。
The object's constructor and its render method look like this
对象的构造函数和render方法看上去是这样的
应用推荐