Sealed alternative
- by Jeriho
According to "Programming in scala" a sealed class cannot have any new subclasses added except the ones in the same ?le.
In the same book was described a way to enumerate classes that can extend class or trait in multiple files. I have forgotten it and can't find again.
Remind it to me, please.