Multiple choice

A class can have many methods with the same name, as long as the number of parameters is different. This is known as

  1. method overloading

  2. method invocating

  3. method overriding

  4. method labeling

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

Method overloading allows a class to have multiple methods with the same name but different parameter lists (different number or types of parameters). The compiler selects which version to call based on the arguments passed. This is different from overriding (replacing a parent class method) and enables method behavior to vary based on input types.