Question 60Asked in Bihar STET 2024 Paper II Computer Science, 11 Jun 2024, Shift 1 (10:00 AM)

What is the term for the ability of a class to provide different implementations of a method based on the input parameters?इनपुट मापदंडों के आधार पर एक विधि के विभिन्न कार्यान्वयन प्रदान करने के लिए एक वर्ग की क्षमता के लिए शब्द क्या है?

इनपुट मापदंडों के आधार पर एक विधि के विभिन्न कार्यान्वयन प्रदान करने के लिए एक वर्ग की क्षमता के लिए शब्द क्या है?
  1. AOverloadingओवरलोडिंग
  2. BPolymorphismबहुरूपता
  3. CInheritanceवंशानुक्रम
  4. DEncapsulationएनकैप्सुलेशन
Show answerHide answer

Correct answer: (A) Overloadingओवरलोडिंग

Explanation

Method overloading chooses which implementation to run from the number and types of arguments passed (compile-time polymorphism).Method overloading में, पास किए गए arguments की संख्या और प्रकार देखकर तय होता है कि कौन-सा implementation चलेगा (compile-time polymorphism)।

From Bihar STET 2024 Paper II Computer Science PYQ, 11 Jun 2024, Shift 1 (10:00 AM)

This is question 60 of Bihar STET 2024 Paper II Computer Science PYQ, 11 Jun 2024, Shift 1 (10:00 AM). 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.