Question: what is the difference between function and method in scala?
Answer: A function is a collection of statements that perform a certain task. ... Scala functions are first class values. Difference between Scala Functions & Methods: Function is a object which can be stored in a variable. But a method always belongs to a class which has a name, signature bytecode etc.