Question 73Asked in Bihar STET 2025 Paper II Computer Science, 3 Nov 2025, Shift 2 (2:00 PM)

In OOP, which term refers to a mechanism by which a class can inherit properties andओओपी में, कौन सा शब्द एक तंत्र को संदर्भित करता है जिसके द्वारा एक वर्ग दूसरे वर्ग से गुणों और

In OOP, which term refers to a mechanism by which a class can inherit properties and behaviors from another class?
ओओपी में, कौन सा शब्द एक तंत्र को संदर्भित करता है जिसके द्वारा एक वर्ग दूसरे वर्ग से गुणों और व्यवहारों को प्राप्त कर सकता है?
  1. APolymorphismबहुरूपता
  2. BAbstractionअमूर्ता
  3. CEncapsulationएनकैप्सुलेशन
  4. DInheritanceवंशानुक्रम
Show answerHide answer

Correct answer: (D) Inheritanceवंशानुक्रम

Explanation

Inheritance lets a class (child) acquire the properties and behaviours of another class (parent), allowing code reuse.Inheritance एक क्लास (child) को दूसरी क्लास (parent) की प्रॉपर्टी और व्यवहार पाने देती है, जिससे कोड का पुनः उपयोग होता है।

From Bihar STET 2025 Paper II Computer Science PYQ, 3 Nov 2025, Shift 2 (2:00 PM)

This is question 73 of Bihar STET 2025 Paper II Computer Science PYQ, 3 Nov 2025, Shift 2 (2:00 PM). See all questions of this paper with answers, or attempt the paper as a timed online test to get your score and all-India rank.