[Chapter5_실습문제]
[1~2] 다음 TV 클래스가 있다. 1. 다음 main( ) 메소드와 실행 결과를 참고하여 TV를 상속받은 ColorTV 클래스를 작성하라. class TV { private int size; public TV(int size) { this.size = size; } protected int getSize() { return size; } } public class ColorTV extends TV { private int color; public ColorTV(int size, int color) { super(size); this.color = color; } public void printProperty() { System.out.println(getSize() + "인치 " + color + "..