175,561 views
28 votes
28 votes
Under which of these conditions should method overloading be used?: *

A) When you want to override the functionality of an inherited method with another one having the same name
B) When the methods have different parameter names
C) When the methods have similar behavior but they differ in their arity or parameter types
D) Two methods with the same name will cause a compilation error

User Arun Aravind
by
2.5k points

1 Answer

9 votes
9 votes
B! I hope this helps!
User Will Hardy
by
3.1k points