142k views
2 votes
A method name is ____________________ if a class has more than one method with that name (but different parameter types).

a) overridden
b) overimplemented
c) overwhelmed
d) overloaded

User Ruelluna
by
7.9k points

1 Answer

2 votes

Final answer:

A method name is overloaded if a class has multiple methods with the same name but different parameter types.

Step-by-step explanation:

A method name is overloaded ifhas more than one method with that name (but different parameter types). a class

For example, let's say we have a class called Math. We can define multiple methods called add, each with a different number and type of parameters. This allows us to use the same method name for different operations.

User Adi GuN
by
8.1k points