constructor

美 [kənˈstrʌktər]英 [kənˈstrʌktə(r)]
  • n.(尤指汽车或飞机的)建造者

复数:constructors

constructorconstructor

constructor

n.
1
The constructor function has no parameters and returns an instance of the type with all of its attributes set to null values. 构造函数没有参数,并且返回的类型实例中的所有属性都为空。
2
Constructor, where the name of each value is converted to a string, and the ordinal setting represents a one-up value for each setting. 构造函数中,在这里,每个值的名称都被转换成一个字符串,并且序数设置表示了每个设置的优先值。
3
This version of the constructor allows you to specify the group to which an item belongs. 此版本的构造函数允许您指定项所属的组。
4
The * at the end of the CONSTRUCTOR production signifies that there can be zero or more occurrences of that production. CONSTRUCTOR产品尾部的*意味着该产品可以不存在,也可以存在更多。
5
Unlike destructors , it is often the case that something done inside a constructor might throw an exception. 与析构函数不同,构造函数内部所做的事情经常会抛出异常。
6
The best way to make sure this doesn't happen is to initialize variables where you declare them instead of in the body of every constructor. 确保这些不会发生的最好的方法是在声明变量的时候就初始化,而不是在每个构造函数中进行初始化。
7
The programming language compiler added a default static constructor to your type and did not make it private. 编程语言编译器已向您的类型中添加默认静态构造函数,但未将其设置为私有。
8
Notice that this constructor takes the $idsadmin object as a parameter and stores it in its own $idsadmin class variable. 注意,这个构造函数使用$idsadmin对象作为参数并将它保存在自己的$idsadmin类变量中。
9
This constructor returns a value, however, which means that this value takes the place of the regular Object, which itself is thrown away. 但是,这个构造函数返回一个值,这意味着这个值取代常规的Object,而后者将被抛弃。
10
Any constructors that you define for structures must have at least one argument so that they do not conflict with the default constructor. 为结构定义的任何构造函数都必须至少有一个参数,以便不会与默认构造函数冲突。
11
A static constructor is used to initialize any static data, or to perform a particular action that needs to be performed once only. 静态建构函式可以用来初始化任何静态资料,或执行只需执行一次的特定动作。
12
You defined a static constructor for your type and did not make it private. 您定义了类型的静态构造函数,但未将其设置为私有。
13
Which passes the name of the file containing the public key as a parameter to its constructor. 它将包含公钥的文件的名称作为参数传递至其构造函数。
14
This constructor allows you to specify the local IP address and port number on which to listen for incoming connection attempts. 此构造函数允许指定本地IP地址和用于侦听传入的连接尝试的端口号。
15
A constructor is just a special method that creates an instance (or object) of a particular class. 构造函数只是创建特定类实例(或对象)的特殊方法。
16
The caller of this constructor is required to ensure that this string has been localized for the current system culture. 此构造函数的调用方需要确保此字符串已针对当前系统区域性进行了本地化。
17
Property gets a value indicating whether the field can only be set in the body of the constructor. 属性获取一个值,该值指示此字段是否只能在构造函数的主体中设置。
18
The class itself provides no benefits: it has no fields, no constructor (besides the autogenerated one from Java), and no state. 类本身不提供任何效益:它没有字段,没有构造函数(除了Java自动生成的),没有状态。
19
Constructor provides the name for the Class and initializes the properties which can be different in every instance of the Class. 构造器会为类提供一个名称,和初始化每一个类的实现的属性。
20
The user has no control over when the static constructor is called. 用户不能控制何时调用该静态构造函数。
21
Thus, by declaring the variables with this type, you can directly assign the result of a constructor call to the corresponding variable. 这样,通过声明这种类型的变量,可以直接把构造函数调用的结果分配给对应的变量。
22
To maintain better performance, do not set the size of a control in its constructor. 若要保持更好的性能,请不要在控件构造函数中设置控件的大小。
23
In the case of the code I've been using for this article, there's a major error in the interaction between the two loops in the constructor. 对于我在本文中用到的代码,构造函数中两个循环之间的相互作用中存在一个重大错误。
24
Traits don't support auxiliary constructors, nor do they accept an argument list for the primary constructor, the body of a trait. Traits不支持辅助构造函数,它们也不支持在主构造函数,trait的主体里的参数列表。
25
An empty public constructor serves no purpose. Such a constructor need not be defined at all. 一个空的公有构造体没有用处,这样一个构造体完全不需要被定义。
26
Control automatically calls the default constructor of a business object to create and instance of it using reflection. 控件自动调用业务对象的默认构造函数,以使用反射创建该对象的实例。
27
Upon insertion of the highlighted record in table "wells" , the insert trigger calls the point constructor and the transform function. 在“wells”表中插入突出显示的记录时,插入触发器调用点构造函数和转换函数。
28
This shouldn't come as a surprise since the name of the constructor function is effectively the name of the class. 这不应当让人感到吃惊,因为构造函数的名称实际上是类的名称。
29
Constructor is called for that culture, and the creation process is time consuming. 构造函数时创建,创建过程非常耗时。
30
This behavior is referred to in the DI world as constructor injection, because the instance is passed through one of the constructors. 这个行为在DI世界中称作构造函数注入,因为实例是通过一个构造函数传递的。