If I have a trait :
trait Person
{
val name: String
}
and then a case class:
case class Student(val name: String) extends Person
{
......
}
Are these two "name" the same thing? If I pass a value to Student's "name" field, can I access to this value through Person's name? I guess not. Or Student's "name" overrides Person's name? I guess I can only access Student's name via the Student class.