词汇 constructor 在中文的含义

constructor 在英语中是什么意思?与 Lingoland 一起探索这个词的含义、发音及具体用法

constructor

US /kənˈstrʌk.t̬ɚ/
UK /kənˈstrʌk.t̬ɚ/
"constructor" picture

名词

1.

承建商, 建造者

a person or company that builds or constructs something, especially a building or road.

示例:
The constructor completed the new bridge ahead of schedule.
承建商提前完成了新桥。
We hired a local constructor for our home renovation.
我们聘请了一位当地的承建商来翻新我们的房子。
2.

构造函数

a special method, in object-oriented programming, for creating and initializing an object.

示例:
In Java, the constructor is called when a new object is instantiated.
在Java中,当实例化一个新对象时,会调用构造函数
Every class in C++ has at least one constructor, even if it's implicitly defined.
C++中的每个类都至少有一个构造函数,即使它是隐式定义的。
在 Lingoland 学习这个单词