title: Why it is not possible to override mutable variable in scala?
body: <p>Why it is not possible to override mutable variable in scala ?</p>
  
  <pre><code>class Abs(var name: String){
  }
  
  class AbsImpl(override var name: String) extends Abs(name){
  }
  </code></pre>
  
  <p>Above code gives following compile time error :-</p>
  
  <p><em><code>variable name cannot override a mutable variable</code></em></p>
  
  <p><strong>If name is declared val, then above code works fine.</strong></p>