Question 46Asked in Bihar STET 2025 Paper II Computer Science, 3 Nov 2025, Shift 1 (9:00 AM)

In OOP, what is method overloading?ओओपी में, विधि ओवरलोडिंग क्या है?

ओओपी में, विधि ओवरलोडिंग क्या है?
  1. ACreating multiple constructorsकई कन्स्ट्रक्टर बनाना
  2. BUsing multiple inheritanceएकाधिक विरासत का उपयोग करना
  3. CDefining multiple methods with the same name but different parametersएक ही नाम लेकिन विभिन्न मापदंडों के साथ कई विधियों को परिभाषित करना
  4. DInheriting multiple methods from a parent classमाता-पिता वर्ग से कई तरीकों को विरासत में लेना
Show answerHide answer

Correct answer: (C) Defining multiple methods with the same name but different parametersएक ही नाम लेकिन विभिन्न मापदंडों के साथ कई विधियों को परिभाषित करना

Explanation

Method overloading means defining several methods with the same name in a class but with different numbers or types of parameters; the compiler picks the right one from the call.Method overloading का अर्थ है क्लास में एक ही नाम की कई मेथड बनाना जिनके पैरामीटर की संख्या या प्रकार अलग हों; कंपाइलर कॉल देखकर सही मेथड चुनता है।

From Bihar STET 2025 Paper II Computer Science PYQ, 3 Nov 2025, Shift 1 (9:00 AM)

This is question 46 of Bihar STET 2025 Paper II Computer Science PYQ, 3 Nov 2025, Shift 1 (9: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.