title: What are the differences between final class and sealed class in Scala?
body: <p>There are two types of modifiers in Scala: <code>final</code> and <code>sealed</code></p>
  
  <p>What are the differences between them? When should you use one over the other?</p>