Question 55Asked in Bihar STET Paper 2 Computer Science (Class 11-12), 12 Sep 2023, Shift 2 + 1 more paper

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 have different parameter lists; overriding redefines an inherited method with the same signature.

From Bihar STET Paper 2 Computer Science (Class 11-12) PYQ, 12 Sep 2023, Shift 2

This is question 55 of Bihar STET Paper 2 Computer Science (Class 11-12) PYQ, 12 Sep 2023, Shift 2. 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.

Asked in 2 papers