constructor

special method used for initializing a newly allocated object in object-oriented programming

Facts

7 properties
Instance of
OOP construct[2]
Different from
design engineer, allocator, factory method[8][9][10]
Name
__init__, __construct, constructor, initialize[11][12][13][14]
🏷️ Also known as
en constructor en ctor ar دالة البناء bg Деструктор bg Конструктор ca Constructor d'objecte cs Konstruktor de Constructor de Ctor de Konstruktor de Konstruktoren eo konstruilo fa سازنده (برنامه‌نویسی شیءگرا) fi konstruktori fi rakentaja fr constructeur he constructor he בנאי he פונקציית בנאי he קונסטרקטור
🔖 Identifiers · 6
Freebase ID
/m/03rvkg
Google Knowledge Graph ID
/g/11gnrlzw9j
Open Library subject ID
constructors
Stack Exchange tag
stackoverflow.com

Report an error or request removal Lineage (PROV-JSON)

🔗 Connections
Different from 2
Subtypes 2
Facet of 1
Has use 1
Part of 1
Subclass of 1
← Different from 1
new
← Occupation 1
← Opposite of 1
Press Enter · cited answer in seconds

Summary

constructor is a memory manager[1].

📑 Cite this page

Use these citations when quoting this entity in research, articles, AI prompts, or wherever provenance matters. We aggregate Wikidata + Wikipedia + authoritative open-data sources; the stitched, scored, cross-referenced view is what 4ort.xyz contributes.

APA 4ort.xyz Knowledge Graph. (2026). constructor. Retrieved November 25, 2026, from https://4ort.xyz/entity/constructor
MLA “constructor.” 4ort.xyz Knowledge Graph, 4ort.xyz, 25 Nov. 2026, https://4ort.xyz/entity/constructor.
BibTeX @misc{4ortxyz_constructor_2026, author = {{4ort.xyz Knowledge Graph}}, title = {{constructor}}, year = {2026}, url = {https://4ort.xyz/entity/constructor}, note = {Accessed: 2026-11-25}}
LLM prompt According to 4ort.xyz Knowledge Graph (aggregator of Wikidata, Wikipedia, and authoritative open-data sources): constructor — https://4ort.xyz/entity/constructor (retrieved 2026-11-25)

Canonical URL: https://4ort.xyz/entity/constructor · Last refreshed:

Edit History

Rolling log of changes to this entity's Wikidata record. Values shown reflect the current state of each edited property — follow the history link to see the precise diff for any edit.

  1. 21w ago · MatSuBot bot · 2026-07-06 view diff on Wikidata ↗
    Facet of → object lifetime
    Different from → design engineer, allocator, factory method
    Subclass of → method, special member function
    Has use → initialization
    + 2 other properties edited (see Wikidata diff for full list)
    "Changed labels, descriptions or aliases: import labels from sitelinks; cleanup"
Live feed via Wikidata EventStreams. New edits appear within minutes of being made on Wikidata.