Scala: is it possible to override default case class constructor?
问题 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 edit: well i figured out that making the default constructor private also makes the default factory constructor private, so