SSC IMD SA Mock 01 – Question 172

Question:

In object-oriented programming, when a class inherits properties from more than one direct parent class, it is known as:

ऑब्जेक्ट-ओरिएंटेड प्रोग्रामिंग में, जब कोई क्लास एक से अधिक प्रत्यक्ष पैरेंट क्लास से गुण प्राप्त करती है, तो इसे क्या कहा जाता है?

Options:

  • Multiple Inheritance
  • Multilevel Inheritance
  • Hierarchical Inheritance
  • Hybrid Inheritance
  • मल्टीपल इनहेरिटेंस (Multiple Inheritance)
  • मल्टीलेवल इनहेरिटेंस
  • हायरार्किकल इनहेरिटेंस
  • हाइब्रिड इनहेरिटेंस

Correct Answer: a)

Explanation:

Multiple Inheritance allows a single derived class to inherit directly from two or more base classes (supported in C++, Python, and through interfaces in Java) (Option a).

जब एक क्लास दो या दो से अधिक क्लासों से सीधे इनहेरिट होती है, तो उसे Multiple Inheritance कहते हैं (विकल्प a)।

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top