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

构造函数

常用释义

词性释义

n.

构造函数;构造器;建造者
例句
  • 全部
  • 构造函数
  • 构造器
  • 构造方法
  • 构造程序
  • 施工者
Thus, by declaring the variables with this type, you can directly assign the result of a constructor call to the corresponding variable.
1·You can turn on namespace awareness in the constructor, but I rarely do.
您在构造函数中启用名称空间感知,但我很少这样做。
2·You even have to supply that external file as part of the constructor, as in Listing 1.
您甚至必须提供相应的外部文件作为构造函数的一部分,如清单1所示。
3·In the code above, the constructor of the parent class takes one argument, an integer representing the layout.
在上述代码中,父类的构造函数接受一个参数,一个表示布局的整型参数。
4·To deal with this, you can generate a stack trace in the constructor of the exception object during the throw exception statement.
为了解决这一问题,可以在抛出异常语句期间,在异常对象的构造函数中生成一个堆栈跟踪。
5·It reads the namespaces only one time in advance in the constructor.
它只在构造函数内提前读取一次名称空间。
1·In this case, the annotations are specified within the constructor parameters instead of above the field name.
在这种情况下,注解指定在构造器参数中,而不是放在字段名称上面。
2·I add a string name and port class variable and then two functions: a constructor and the server.
我添加了一个字符串名称、一个端口类变量,还有两个函数:构造器和服务器。
3·Register the attributes in the constructor.
在构造器中注册属性。
4·The constructor also invokes a method to load some configuration properties.
该构造器还调用一个方法来加载一些配置属性。
5·To create an object definition from which you can repeatedly create new instances, you must first define its constructor.
创建一个对象定义,您能通过它重复创建新实例,但必须先定义其构造器。
1·Your widget will need to know which HTML element to hook itself into and what content to display in its tooltip, so you'll specify these as arguments to the constructor and save them in the object.
这个部件需要知道它自己要连接到哪个 HTML 元素,以及要在工具提示中显示什么内容,所以要作为构造方法的参数指定这些,并将它们保存在对象中。
2·Parameters are added to the constructor similarly to how you add parameters to method.
向构造方法添加参数的方式类似于向方法添加参数的方式。
3·Now that you have hooked cursor events in all popular browsers, your object constructor is complete and you can return to the object prototype.
既然已经连接了所有流行的浏览器中的鼠标事件,对象构造方法已经完整了,可以返回到对象原型了。
4·The constructor in the source code is coded this way.
源代码中的构造方法就采用这种方法。
5·Variables are untyped, so the object constructor might begin with code shown in Listing 1.
变量是无类型的,所以对象构造方法可能以清单1这样的代码开头。
1·The first step in converting this class to PHP V5 is to rename the constructor.
将这个类转换为PHP V5的第一步是要将构造程序重命名。
2·Axis doesn't provide a constructor that creates a QName from a complete namespace so I have to split the port name into the namespace and local part.
Axis不提供从一个完整的名称空间创建QName的构造程序,所以我不得不把端口名称分割成名称空间和本地部件。
3·I find the constructor for the object using reflection and instantiate it providing a random number between 1 and 10.
我使用反射(reflection)查找这个对象的构造程序,并提供1到10之间的一个随机数字对其实例化。
4·In V5, the method that initializes the object (the constructor) is called __construct.
在PHP V 5中,初始化对象(构造程序)的方法称为__construct。
5·A member variable holds the list of configuration items, a constructor loads the items, and an accessor method called get returns the value of an item.
成员变量保存配置项的列表,构造程序装入项,然后名为get的访问方法返回项的值。
1·Designers and constructor should not ignore their quality, and do well construction bit by bit, with a small fine reflecting great learning.
设计者和施工者都不应忽视它们的质量,要做好点点滴滴构造,用小处的精细体现大学问。
同根词 (词根construct)
constructive adj 建设性的;推定的;构造上的;有助益的
constructible adj [数] 可构成的
constructively adv 建设性地
construction n 建设;建筑物;解释;造句
construct n 构想,概念
constructivism n 构成主义;构成派
constructivist n 构成主义者
constructiveness n 建造性
更新时间:2025-05-04 05:23