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

名詞
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 學習這個單詞