자바 상속 다형성 (1) 썸네일형 리스트형 자바/Java 상속 , interface의 다형성을 활용한 Print 인쇄하기 자바/Java 상속 , interface의 다형성을 활용한 Print 인쇄하기 ▒ ▒ ▒ ▒ ▒ ▒ ▒ 전체 소스 입니다. ▒ ▒ ▒ ▒ ▒ ▒ ▒ package arabiannight.tistory.com; public class TestInterface { public static void main(String[] args) { DotePrint dt = new DotePrint(); InkPrint ip = new InkPrint(); LaserPrint lp = new LaserPrint(); dt.excutePrint(dt); ip.excutePrint(ip); lp.excutePrint(lp); System.out.println(); dt.supplementInk(dt); ip.suppleme.. 이전 1 다음