1.

What Are Implicit Parameters In Scala?

Answer»

Implicit parameter is the way that allows parameters of a method to be “found”. It is similar to default parameters, but it has a DIFFERENT mechanism for finding the “default” value. The implicit parameter is a parameter to method or constructor that is marked as implicit. This means if a parameter value is not MENTIONED then the COMPILER will search for an “implicit” value defined within a SCOPE.

Implicit parameter is the way that allows parameters of a method to be “found”. It is similar to default parameters, but it has a different mechanism for finding the “default” value. The implicit parameter is a parameter to method or constructor that is marked as implicit. This means if a parameter value is not mentioned then the compiler will search for an “implicit” value defined within a scope.



Discussion

No Comment Found