Ways to define a composite function in Scala are –

88. Ways to define a composite function in Scala are -

  1. Compose keyword
  2. andthen keyword
  3. Passing method to another method
  4. All of these

Answer: D) All of these

Explanation:

There are multiple ways to define the composition of a function. They are,

  1. Using compose Keyword
  2. Using andthen Keyword
  3. Passing method to method

Comments and Discussions!

Load comments ↻






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