Which OOP principle allows multiple objects to respond differently to the same…
Which OOP principle allows multiple objects to respond differently to the same method call?
कौन-सा OOP सिद्धांत कई ऑब्जेक्ट्स को एक ही मेथड कॉल के लिए अलग-अलग तरीके से प्रतिक्रिया (respond) करने की अनुमति देता है?
Answer: C. Polymorphism पॉलीमॉर्फिज्म — Polymorphism is an object-oriented programming principle where different objects can respond to the same method call in different ways. It allows the same…
- A.
Encapsulation
एनकैप्सुलेशन
- B.
Abstraction
एब्स्ट्रैक्शन
- C.
Polymorphism
पॉलीमॉर्फिज्म
- D.
Aggregation
एग्रीगेशन
Attempted by 9 students.
Show answer & explanation
Correct answer: C
Polymorphism is an object-oriented programming principle where different objects can respond to the same method call in different ways. It allows the same method name to perform different tasks depending on the object.
व्याख्या (Hindi)
Polymorphism एक object-oriented programming सिद्धांत है जिसमें अलग-अलग objects एक ही method call पर अलग-अलग तरीके से प्रतिक्रिया देते हैं। इसमें एक ही method name अलग-अलग objects के अनुसार अलग कार्य कर सकता है।