constructor

英 [kənˈstrʌk.tər]      美 [kənˈstrʌk.t̬ɚ]
  • n. 构造函数;构造器;建造者
constructor
«
1 / 5
»
记住“constructor”可以通过联想一个“构造”的场景,如一个建筑工人在建造,每次建造都体现着“构造”(construct)的过程,所以将“con-struct-”的建造意象与“-or”后缀(表示人)结合起来,就可以记住“constructor”是建造者或构造者的意思。

以上内容由AI生成, 仅供参考和借鉴

1. A constructor can throw any exception.
一个Constructor可以抛出任何异常.
2. In addition, you can a type must have a parameterless constructor.
另外, 可以指定类型必须有无参数的构造函数.
3. A constructor can be called using a variable of a class - reference type.
构造器可以被类引用类型的变量调用.
4. Like any function, a constructor can take multiple arguments.
和其他函数一样, 构造函数能接受多个参数.
5. The constructor that is used when no explicit initializer is supplied.
在没有显式提供初始化式时调用的构造函数.