I know how objects store in the Heap. But what about inherited objects
public class A {
  private int id;
  public A(int id){
    this.id=id;
  }
}
public class B extends A {
  private String name;
  public B(int id, String name){
    super(id);
    this.name=name;
  }
}
if we create an object like B b = new B(1, "b"); how this object store in the Heap.
I mean JVM store object A class and B class also
 
    