constructor
美 [kənˈstrʌktər]
英 [kənˈstrʌktə(r)] 
词形变化
复数:constructors
英汉双解
1. | (尤指汽车或飞机的)建造者,制造者,建造商a person or company that builds things, especially cars or aircraft |
英汉解释
英英解释
例句
The constructor function has no parameters and returns an instance of the type with all of its attributes set to null values.
构造函数没有参数,并且返回的类型实例中的所有属性都为空。
Constructor, where the name of each value is converted to a string, and the ordinal setting represents a one-up value for each setting.
构造函数中,在这里,每个值的名称都被转换成一个字符串,并且序数设置表示了每个设置的优先值。
This version of the constructor allows you to specify the group to which an item belongs.
此版本的构造函数允许您指定项所属的组。
The * at the end of the CONSTRUCTOR production signifies that there can be zero or more occurrences of that production.
CONSTRUCTOR产品尾部的*意味着该产品可以不存在,也可以存在更多。
Unlike destructors , it is often the case that something done inside a constructor might throw an exception.
与析构函数不同,构造函数内部所做的事情经常会抛出异常。
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.
确保这些不会发生的最好的方法是在声明变量的时候就初始化,而不是在每个构造函数中进行初始化。
The programming language compiler added a default static constructor to your type and did not make it private.
编程语言编译器已向您的类型中添加默认静态构造函数,但未将其设置为私有。
Notice that this constructor takes the $idsadmin object as a parameter and stores it in its own $idsadmin class variable.
注意,这个构造函数使用$idsadmin对象作为参数并将它保存在自己的$idsadmin类变量中。
This constructor returns a value, however, which means that this value takes the place of the regular Object, which itself is thrown away.
但是,这个构造函数返回一个值,这意味着这个值取代常规的Object,而后者将被抛弃。
Any constructors that you define for structures must have at least one argument so that they do not conflict with the default constructor.
为结构定义的任何构造函数都必须至少有一个参数,以便不会与默认构造函数冲突。
A static constructor is used to initialize any static data, or to perform a particular action that needs to be performed once only.
静态建构函式可以用来初始化任何静态资料,或执行只需执行一次的特定动作。
You defined a static constructor for your type and did not make it private.
您定义了类型的静态构造函数,但未将其设置为私有。
Which passes the name of the file containing the public key as a parameter to its constructor.
它将包含公钥的文件的名称作为参数传递至其构造函数。
This constructor allows you to specify the local IP address and port number on which to listen for incoming connection attempts.
此构造函数允许指定本地IP地址和用于侦听传入的连接尝试的端口号。
A constructor is just a special method that creates an instance (or object) of a particular class.
构造函数只是创建特定类实例(或对象)的特殊方法。
The caller of this constructor is required to ensure that this string has been localized for the current system culture.
此构造函数的调用方需要确保此字符串已针对当前系统区域性进行了本地化。
Property gets a value indicating whether the field can only be set in the body of the constructor.
属性获取一个值,该值指示此字段是否只能在构造函数的主体中设置。
The class itself provides no benefits: it has no fields, no constructor (besides the autogenerated one from Java), and no state.
类本身不提供任何效益:它没有字段,没有构造函数(除了Java自动生成的),没有状态。
Constructor provides the name for the Class and initializes the properties which can be different in every instance of the Class.
构造器会为类提供一个名称,和初始化每一个类的实现的属性。
The user has no control over when the static constructor is called.
用户不能控制何时调用该静态构造函数。
Thus, by declaring the variables with this type, you can directly assign the result of a constructor call to the corresponding variable.
这样,通过声明这种类型的变量,可以直接把构造函数调用的结果分配给对应的变量。
To maintain better performance, do not set the size of a control in its constructor.
若要保持更好的性能,请不要在控件构造函数中设置控件的大小。
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.
对于我在本文中用到的代码,构造函数中两个循环之间的相互作用中存在一个重大错误。
Traits don't support auxiliary constructors, nor do they accept an argument list for the primary constructor, the body of a trait.
Traits不支持辅助构造函数,它们也不支持在主构造函数,trait的主体里的参数列表。
An empty public constructor serves no purpose. Such a constructor need not be defined at all.
一个空的公有构造体没有用处,这样一个构造体完全不需要被定义。
Control automatically calls the default constructor of a business object to create and instance of it using reflection.
控件自动调用业务对象的默认构造函数,以使用反射创建该对象的实例。
Upon insertion of the highlighted record in table "wells" , the insert trigger calls the point constructor and the transform function.
在“wells”表中插入突出显示的记录时,插入触发器调用点构造函数和转换函数。
This shouldn't come as a surprise since the name of the constructor function is effectively the name of the class.
这不应当让人感到吃惊,因为构造函数的名称实际上是类的名称。
Constructor is called for that culture, and the creation process is time consuming.
构造函数时创建,创建过程非常耗时。
This behavior is referred to in the DI world as constructor injection, because the instance is passed through one of the constructors.
这个行为在DI世界中称作构造函数注入,因为实例是通过一个构造函数传递的。
As you saw earlier, the code for a static field initializer executes inside an implicit type constructor.
正如您在前面看到的那样,静态字段初始值设定项的代码在隐式类型构造函数的内部执行。
If the class has no default constructor, then the class may not be used in these contexts .
如果类没有默认构造函数,则该类就不能用在这些环境中。
The only way to set such a field is through the exception constructor.
设置这样一个字段的惟一方法就是通过异常构造器(exceptionconstructor)。
Notice how the constructor of this class takes in a com. ibm. collaboration. realtime. messages. MessageHandler object as a parameter.
需注意此类的构造函数使用com.ibm.collaboration.realtime.messages.MessageHandler对象作为参数的方式。
Constructor allows you to keep the linked list for the map in access order, from least recently used to most recently used.
构造函数使您能够保持映射表的链表的存取顺序,从使用时间距今最远的到最近使用的。
By the time the body of the constructor begins executing, initialization is complete.
在开始执行构造函数的函数体之前,要完成初始化。
This type actually defines the signature of a constructor for the specified class and a matching sequence of values.
该类型实际定义了指定用于类和值的匹配序列的构造器的签名。
The default constructor has no arguments; its implementation calls the base class constructor.
默认的构造函数没有参数;其实现将调用基类构造函数。
Constructor is displayed by a visual designer when you access the property, event, or extender to which the attribute applies.
当访问该属性所应用于的属性、事件或扩展程序时,可视化设计器将显示在。
A copy constructor was not accessible in a base class and was therefore not generated for a derived class.
不可访问基类中的复制构造函数,因此无法为派生类生成复制构造函数。