Which of these ways of invoking a method are valid in Scala?

85. Which of these ways of invoking a method are valid in Scala?

  1. Using . operator
  2. Using direct name call by other methods of the same class
  3. Using inheritance
  4. All of these

Answer: D) All of these

Explanation:

All of the above-mentioned methods can be used to invoke a method in Scala.

Comments and Discussions!

Load comments ↻






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