Home »
MCQs »
Scala MCQs
Ways to define a composite function in Scala are –
88. Ways to define a composite function in Scala are -
- Compose keyword
- andthen keyword
- Passing method to another method
- All of these
Answer: D) All of these
Explanation:
There are multiple ways to define the composition of a function. They are,
- Using compose Keyword
- Using andthen Keyword
- Passing method to method