What is a sealed trait in Scala and why is it useful with pattern matching?
-
A
A trait that cannot be mixed in
-
B
A trait whose subclasses are defined in the same file, enabling exhaustive matching
-
C
A trait with private members
-
D
A trait with no abstract methods