Back to Developer Roadmap

Case classes

src/data/roadmaps/scala/content/[email protected]

4.0777 B
Original Source

Case classes

Case classes are a special type of class that is particularly useful for modeling immutable data. They provide several conveniences over regular classes, including immutability, several synthetic methods like toString, equals, and copy, as well as synthetic apply and unapply methods, which make case classes very useful for pattern matching.

Visit the following resources to learn more: