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?
एक ही नाम लेकिन अलग-अलग मापदंडों के साथ एक कक्षा में कई विधियों को परिभाषित करने के लिए
क्या शब्द है?
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 के साथ दोबारा परिभाषित किया जाता है।