Home »
MCQs »
Scala MCQs
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?
- Using . operator
- Using direct name call by other methods of the same class
- Using inheritance
- All of these
Answer: D) All of these
Explanation:
All of the above-mentioned methods can be used to invoke a method in Scala.