Scala's sealed abstract vs abstract class

Łukasz Lew picture Łukasz Lew · Jun 13, 2010 · Viewed 20.1k times · Source

What is the difference between sealed abstract and abstract Scala class?

Answer

sepp2k picture sepp2k · Jun 13, 2010

The difference is that all subclasses of a sealed class (whether it's abstract or not) must be in the same file as the sealed class.