[상속] - 한 객체의 필드(변수)와 메소드를 다른 객체가 물려받을 수 있는 기능 - 코드 중복를 제거 - 유지 보수에 좋음 class SubstractionableCalculator extends Calculator{ public void substract() { System.out.println(this.left-this.right); } } - extands 객체 이름 : 객체의 기능을 확장 - SubstractionableCalculator가 Calculator의 기능을 부모로 해서 상속 - this.left, this.right는 Calculator 객체에서 정의된 것이다. 객체에 메소드를 추가하는 게 어려움 1. 객체를 자신이 만들지 않아서 소스를 변경할 수 없음. (변경할 수 있..