오버라이딩 된 메서드가 항상 우선권을 가진다. 기존 기능을 덮어 새로운 기능을 재정의 한다는 뜻의 오버라이딩이다.// 부모 변수가 자식 인스턴스 참조Parent poly = new Child();System.out.println("Parent -> Child");System.out.println("value = " + poly.value); // 변수는 오버라이딩Xpoly.method(); // 메서드 오버라이딩poly변수는 Parent 타입이므로 poly.value, poly.method( )를 호출하면 Parent타입에서 기능을 찾아서 실행한다.따라서 poly.value는 Parent타입에 있는 value값을 읽는다.poly.method( )는 Parent 타입에 있는 method( )를 실행하려고..