title: How to not override a val of a parent class?
body: <p>please take a look at the following code:</p>
  
  <pre><code>scala&gt; sealed abstract class Person(val name: String)
  defined class Person
  
  scala&gt; case class Student(id: Int, name: String) extends Person(name)
  &lt;console&gt;:8: error: overriding value name in class Person of type String;
  value name needs `override' modifier
         case class Student(id: Int, name: String) extends Person(name)
                                     ^
  </code></pre>
  
  <p>This might be a trivial question, but after searching the web for quite some time, I wasn't able to figure out how to simply pass the string that <code>Student</code>'s constructor will be provided as <code>name</code> to the <code>Person</code>'s constructor. I don't want to override anything. What am I doing wrong?</p>
  
  <p>Thank you very much in advance!</p>