constructor

constructor

美 [kənˈstrʌktər]  英 [kənˈstrʌktə(r)]

  • n.(尤指汽车或飞机的)建造者

词形变化

复数:constructors  

英汉双解

n.
1.
(尤指汽车或飞机的)建造者,制造者,建造商a person or company that builds things, especially cars or aircraft

英汉解释

n.
1.
建造者,建设者
2.
【海】造船技师

英英解释

n.

例句

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.

不可访问复制构造函数因此无法派生生成复制构造函数