constructor
建設者、建造者
解説 Definition
建物や橋などを実際に建てる人、または建てる仕事をする人を表します。設計だけでなく、材料や人手を使って形あるものを作り上げる人を指します。
A person who builds something such as a building, bridge, or other structure. It means someone who makes a physical thing by putting materials together.
覚え方のコツ Memory Tip
construct は「建てる、組み立てる」という意味です。そこに「人」を表す -or が付いて、「建てる人」と覚えると分かりやすいです。
Construct means 'to build.' Add -or, meaning 'a person who does it,' and constructor becomes 'a person who builds.'
例文
The constructor built a strong bridge over the river.
その建設者は川に丈夫な橋を建てました。
A skilled constructor worked on the new school.
熟練した建設者が新しい学校の工事に取り組みました。
The constructor used stone and wood to make the house.
その建造者は石と木を使って家を作りました。
建築者
(意味 2)解説 Definition
建物や構造物などを建設する人のこと。プログラミングではクラスを初期化するメソッドのことをいいます。
例文
The constructor built the bridge in record time.
その建築者は記録的な時間で橋を建てました。
The skilled constructor oversaw the project.
その熟練した建築者はプロジェクトを監督しました。
The constructor was responsible for all safety measures.
建築者はすべての安全措置に責任がありました。
コンストラクター
(意味 3)解説 Definition
コンストラクタとは、プログラミング言語でオブジェクトの初期化を行う特別なメソッドまたは関数で、新しいインスタンスが作成されるときに自動的に実行されます。初期状態に必要な処理や値の設定をここで行い、その後の利用で正しく動作するように準備されます。
A constructor is a person or thing that builds or creates something. In technical fields, especially programming, it means a special function used to create and set up a new object. The exact meaning depends on whether the context is general building or computing.
覚え方のコツ Memory Tip
construct「組み立てる」を知っていれば覚えやすい。constructor はその名詞形で、「組み立てる役」をするもの。プログラミングでは、ばらばらの値や設定をまとめて object を使える状態に組み上げる最初の処理だと捉えるとよい。new と一緒に現れやすく、インスタンス生成時に自動で走るのがポイント。似た語の function や method は一般的な処理名だが、constructor は「作られた瞬間の初期化専用」という役割に絞って覚えると混同しにくい。
The root is `construct`, so a `constructor` is the part that builds something at the start. In programming, think of the special code that runs when a new object is created. A simple contrast helps: `constructor` prepares at the beginning, while `destructor` cleans up at the end.
例文
In Java, the constructor initializes the object's properties.
Javaではコンストラクタがオブジェクトのプロパティを初期化する。
The constructor is called automatically when you create a new instance.
新しいインスタンスを作成するとき、コンストラクタが自動的に呼び出される。
You can define a constructor for your class to set initial values.
初期値を設定するためにクラスのコンストラクタを定義できる。
初期化メソッド
(意味 4)解説 Definition
クラスがインスタンス化される際に自動的に呼び出される特殊なメソッドです。オブジェクトの初期化や必要な設定を行うために使われます。コンストラクタは多くのプログラミング言語で重要な機能です。
例文
The constructor method initializes the object.
初期化メソッドはオブジェクトを初期化します。
Every class needs a proper constructor.
すべてのクラスは適切な初期化メソッドが必要です。
The constructor takes several parameters.
初期化メソッドは複数のパラメータを受け取ります。
constructor の類義語・関連語
constructor の語源・成り立ち Etymology
ラテン語の construere「積み重ねて建てる、組み立てる」に由来します。con- は「一緒に」、struere は「積み上げる」という意味を持ちます。
It comes from Latin construere, meaning 'to pile together' or 'to build.' The parts are con- 'together' and struere 'to pile up or arrange.'
外部辞書で調べる
この単語を英単語クイズで覚えよう