Scala supports an interesting construct called Case Classes with the intent of creating immutable objects that can be used in pattern matching. This article provides a quick introduction to Scala Case Classes with examples. A case class is created by adding the keyword case before the class definition. case class Employee Scala Case Classes can be used to automatically generate boilerplate
This post first appeared on Programming Tutorials By SourceTricks, please read the originial post: here