What is the difference between Function and Method in Scala?
Answer Posted / Vidit Dixit
A function in Scala is a first-class citizen, meaning it can be treated like any other value. Functions are anonymous, self-contained units of functionality that can be passed as arguments to other functions or returned from functions. A method is a member of an object or class and operates on the state of the object.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers