When reading source code I have come across the sealed
keyword in Scala programs.
Its actually a great concept:
Traits and classes can be marked sealed which means all subtypes must be declared in the same file. This assures that all subtypes are known.
source