Scala Language Case Classes

Help us to keep this website almost Ad Free! It takes only 10 seconds of your time:
> Step 1: Go view our video on YouTube: EF Core Bulk Insert
> Step 2: And Like the video. BONUS: You can also share it!

Syntax

  • case class Foo() // Case classes with no parameters must have an empty list
  • case class Foo(a1: A1, ..., aN: AN) // Create a case class with fields a1 ... aN
  • case object Bar // Create a singleton case class


Got any Scala Language Question?