상속 : 부모클래스의 기능을 자식클래스가 물려받는 것 부모클래스에서 작성한 기능을 재사용하기 위해 class 클래스명 extends 부모클래스명 { ... } ex. public class inheritance { public static void main(String[] args) { Student st = new Student(); st.breath(); st.learn(); Teacher t = new Teacher(); t.eat(); t.teach(); } } class Person { void breath() { System.out.println("숨쉬기"); } void eat() { System.out.println("밥먹기"); } void say () { System.out.printl..