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…

  1. A.

    Encapsulation

    एनकैप्सुलेशन

  2. B.

    Abstraction

    एब्स्ट्रैक्शन

  3. C.

    Polymorphism

    पॉलीमॉर्फिज्म

  4. 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 के अनुसार अलग कार्य कर सकता है।

Explore the full course: Nta Ugc Net Paper 2

Loading lesson…