title: Why it's impossible to override `var` with `def` in Scala?
body: <p>While I understand why a <code>var</code> cannot override a <code>val</code> in subclass and vice versa, I am unable to understand why does Scala not allow a <code>def</code> in subclass to override a <code>var</code> in superclass</p>
  
  <pre><code>class Car {
    var age = 32
  }
  
  class SedanCar extends Car {
    override def age = 54
  }
  </code></pre>
  
  <p>As <code>var</code> is mutable why not allow a <code>def</code> to override it? Can anyone please help me in understanding this? </p>