Home »
MCQs »
Scala MCQs
Which of these parts of the declaration are not required in the case of parameter less methods?
84. Which of these parts of the declaration are not required in the case of parameter less methods?
- def keyword
- Return type
- Parenthesis ()
- All of these
Answer: C) Parenthesis ()
Explanation:
Read: Parameterless method in Scala