Beginner Object-Oriented Programming Concepts
Q14 / 100

What is "method overloading"?

Correct! Well done.

Incorrect.

The correct answer is B) Defining multiple methods with the same name but different parameter lists within the same class

B

Correct Answer

Defining multiple methods with the same name but different parameter lists within the same class

Explanation

Overloading allows a class to have several methods with the same name distinguished by their parameters (not supported in all languages, e.g. Python).

Progress
14/100