Question 98Asked in Bihar STET 2025 Paper II Computer Science, 3 Nov 2025, Shift 2 (2:00 PM)

Which concept allows a subclass to provide a specific implementation of a method thatकौन सी अवधारणा एक उपवर्ग को एक विधि का एक विशिष्ट कार्यान्वयन प्रदान करने की अनुमति देती है

Which concept allows a subclass to provide a specific implementation of a method that is already defined in the superclass?
कौन सी अवधारणा एक उपवर्ग को एक विधि का एक विशिष्ट कार्यान्वयन प्रदान करने की अनुमति देती है जो पहले से ही सुपरक्लास में परिभाषित है?
  1. AOverloadingओवरलोडिंग
  2. BInheritanceवंशानुक्रम
  3. CPolymorphismबहुरूपता
  4. DOverridingअभिभावी
Show answerHide answer

Correct answer: (D) Overridingअभिभावी

Explanation

Method overriding lets a subclass provide its own implementation of a method already defined in its superclass, with the same name and signature. Overloading means the same name with different parameters.Method overriding में subclass अपनी superclass में पहले से परिभाषित मेथड का अपना कार्यान्वयन देती है, उसी नाम और signature के साथ। Overloading में नाम वही रहता है पर पैरामीटर अलग होते हैं।

From Bihar STET 2025 Paper II Computer Science PYQ, 3 Nov 2025, Shift 2 (2:00 PM)

This is question 98 of Bihar STET 2025 Paper II Computer Science PYQ, 3 Nov 2025, Shift 2 (2:00 PM). 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.