class TV{
private int size;
public TV(int size) {this.size=size;}
protected int getSize() {return size;}
}
class ColorTV extends TV
{
int color;
public ColorTV(int size ,int color)
{
super(size);
this.color=color;
}
}
class IPTV extends ColorTV
{
public ColorTV(int size ,int color,int iptv)
{
super(size);
super(color);
this.iptv=iptv;
}
int iptv;
public void printProperty()
{
System.out.print("나의 IPTV는 "+iptv+"주소의"+getSize()+"인치 "+color+"컬러");
}
}
class Main{
public static void main(String[] args) {
IPTV ipTV=new IPTV("192.1.2"32,1024);
ipTV.printProperty();
}
}