Scala: is it possible to override default case class constructor?
- by adam77
Just wondering if this is possible.
What I would actually like to do is check and possibly modify one of the arguments before it is stored as a val.
Alternatively, I could use an overload and make the default constructor private. In which case I would also like to make private the default factory constructor in the companion object, how would I do that?
Many thanks.
Adam