Home »
MCQs »
Scala MCQs
Method overloading in Scala is?
74. Method overloading in Scala is?
- Creating multiple methods performing the same task
- Redefining methods in different ways under the same name
- Creating methods differently
- All of these
Answer: B) Redefining methods in different ways under the same name
Explanation:
Scala Method overloading is when one class has more than one method with the same name but different signature.