class Point{
 int x;
 int y;

}

class Point3D extends Point{
 int z;
}

public class Ex06_Extends01 {
 public static void main(String[] args){
  Point pt =new Point();
  pt.x=10;
  pt.y=20;
  
  Point3D p3 = new Point3D();
  
  p3.x =50;
  p3.y = 60;
  p3.z = 70;
  
 }
 



자바에서 이러면   힙에  xy z랑    xy랑 따로 메모리에 할당받나요??