Which concept allows a class to inherit properties and behaviors from multipleकौन सी अवधारणा एक वर्ग को कई वर्गों से गुणों और व्यवहारों को विरासत में लेने की अनुमति देती है?
Which concept allows a class to inherit properties and behaviors from multiple
classes?
कौन सी अवधारणा एक वर्ग को कई वर्गों से गुणों और व्यवहारों को विरासत में लेने की अनुमति देती है?
Show answerHide answer
Correct answer: (D) Multiple Inheritanceमल्टीपल इनहेरिटेंस
Explanation
Multiple inheritance is the specific feature where one class inherits from more than one parent class (e.g. class C(A, B) in Python). Plain "inheritance" only means deriving from a base class.Multiple inheritance वह विशेष सुविधा है जिसमें एक क्लास एक से अधिक parent क्लास से विरासत लेती है (जैसे Python में class C(A, B))। सादा "inheritance" केवल base क्लास से व्युत्पन्न होना है।