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?

  1. def keyword
  2. Return type
  3. Parenthesis ()
  4. All of these

Answer: C) Parenthesis ()

Explanation:

Read: Parameterless method in Scala

Comments and Discussions!

Load comments ↻






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