Case class

Iris S
Feb 7, 2023
  1. promote parameter to field
  2. sensible to string
  3. equals and hashcode implemented out-of-the-box

4. have copy() method

5. have companion object

6. serializable. can send instance of case class in between JVM

7. have extractor pattern

--

--