Scala case class extending Product with Serializable
This is an expected behavior because of how case class works. case class automatically extends two traits, namely Product and Serializable. Product trait is extended as case class is an algebraic data type with product type. Serializable trait is extended so that case class can be treated as a pure data – i.e capable of … Read more