V2EX  ›  英和辞典

Constructor

定義 / Definition

名詞(めいし):何かを建設・構築する人や会社。また、プログラミングにおいては、オブジェクトが生成される際に自動的に呼び出される特別なメソッドのこと。

発音 / Pronunciation

/kənˈstrʌktər/

例文 / Examples

The constructor of this building used only eco-friendly materials.
このビルの建設者は環境に優しい素材だけを使用した。

In object-oriented programming, a constructor initializes the properties of an object when it is first created, ensuring that the object starts in a valid state.
オブジェクト指向プログラミングでは、コンストラクタはオブジェクトが最初に生成される際にそのプロパティを初期化し、オブジェクトが有効な状態で始まることを保証する。

語源 / Etymology

ラテン語の constructorem(建てる者)に由来し、動詞 construere(積み上げる、建設する)から派生した。**con-**(共に)と struere(積む、築く)の組み合わせで、「共に積み上げる者」という意味が原義である。英語には16世紀頃に取り入れられ、近代ではプログラミング用語としても広く使われるようになった。

関連語 / Related Words

文学作品での使用例 / Literary Usage

  • Ayn Rand『The Fountainhead』(1943年) — 建築家を主人公とした小説で、建設者・創造者としての constructor の概念が作品全体のテーマとなっている。
  • Stanisław Lem『The Cyberiad』(1965年) — SF短編集の中で、宇宙の「コンストラクター(constructor)」と呼ばれるロボット技術者たちが登場し、あらゆるものを構築する存在として描かれている。
About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2711 Online   Highest 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 47ms · UTC 15:24 · PVG 23:24 · LAX 08:24 · JFK 11:24
♥ Do have faith in what you're doing.