🏗️

constructor

intermediateB2

/kənˈstrʌktər/ · con-struc-tor

A method used to initialize an object in a class.

Meanings

nountechnical

A method used to initialize an object in a class.

ایک ایسا طریقہ جو کسی کلاس میں ایک آبجیکٹ کو ابتدائی حالت میں لانے کے لئے استعمال ہوتا ہے۔

تعمیر کنندہ

tamir kunda

Synonyms

buildercreatororiginatorتعمیر کنندہتخلیق کاربناوت کرنے والا

Antonyms

destroyerdemolishereroderتباہ کنندہمسمار کرنے والاختم کرنے والا

Common Collocations

  • class constructor
  • default constructor
  • copy constructor

Example Sentences

The constructor initializes the object's properties.

تعمیر کنندہ آبجیکٹ کی خصوصیات کو ابتدائی حالت میں لاتا ہے۔

Tamir kunda object ki khasusiyat ko ibtedai haalat mein lata hai.

Every class can have its own constructor.

ہر کلاس کا اپنا تعمیر کنندہ ہوسکتا ہے۔

Har class ka apna tamir kunda hosakta hai.

In Java, the constructor can be overloaded.

جاوا میں، تعمیر کنندہ کو اوور لوڈ کیا جا سکتا ہے۔

Java mein, tamir kunda ko overload kiya ja sakta hai.

Easily Confused With

instructor:An instructor is someone who teaches or gives instruction, while a constructor is related to building or creating objects.

Word Family

construct
verbتعمیر کرنا
construction
nounتعمیرات
constructive
adjectiveتعمیراتی

See Also

💡 Memory Tip

Think of a constructor as a builder for objects in programming.

Picture a construction site where objects are being built.

📖 Etymology

Origin: Latin "constructor" — builder

First known use: 15th century

The term 'constructor' evolved from Latin roots meaning 'to build'. It became popular in programming as a term for special methods used to create objects.