Method overloading in Scala is?

74. Method overloading in Scala is?

  1. Creating multiple methods performing the same task
  2. Redefining methods in different ways under the same name
  3. Creating methods differently
  4. 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.

Comments and Discussions!

Load comments ↻






Copyright © 2024 www.includehelp.com. All rights reserved.