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

What is the term for defining multiple methods in a class with the same name butएक ही नाम लेकिन अलग-अलग मापदंडों के साथ एक कक्षा में कई विधियों को परिभाषित करने के लिए

What is the term for defining multiple methods in a class with the same name but different parameters?
एक ही नाम लेकिन अलग-अलग मापदंडों के साथ एक कक्षा में कई विधियों को परिभाषित करने के लिए क्या शब्द है?
  1. AOverridingअभिभावी
  2. BOverloadingओवरलोडिंग
  3. CInheritingविरासत में
  4. DInheritanceवंशानुक्रम
Show answerHide answer

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

Explanation

Overloading means several methods in the same class share a name but differ in their parameter lists. Overriding means redefining a parent's method with the same signature in a subclass.Overloading में एक ही क्लास की कई मेथड का नाम समान पर पैरामीटर सूची अलग होती है। Overriding में subclass में parent की मेथड को उसी signature के साथ दोबारा परिभाषित किया जाता है।

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

This is question 17 of Bihar STET 2025 Paper II Computer Science PYQ, 4 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.