在以下情景中:
class Person{
public int ID;
}
class Student extends Person{
public int ID;
}
学生“隐藏了人的ID字段。
如果我们想在内存中表示以下内容:
Student john = new Student();
约翰的对象是否有两个单独的内存位置来存储Person.ID和自己的内容?