What's the best way to inherit some properties from a case class?
Let's say there's a case class with some properties
case class aggregations (aggregation1: Int, aggregation2: Int)
Two other case classes (case class A & case class B) will have the above parameters plus some extra fields. I'm trying to avoid code duplication and wondering what's the best strategy.
Found a thread discussing the same Scala case class inheritance but not sure whether composition/inheritance is the most suitable option here.