Answer Posted / Ramniwas
In Scala, a Closure is an anonymous function that has access to the variables of its enclosing scope. This means that when a function is defined inside another function (or anywhere within a block), it can refer to and manipulate variables in the outer scope even after the outer function has completed execution.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers