class ColorTV
{
int size;
int color;
String name;
protected int getsize()
{
return size;
}
protected int getcolor()
{
return color;
}
}
class IPTV extends ColorTV
{
IPTV(String name, int size, int color)
{
this.name=name;
this.size=size;
this.color=color;
}
IPTV()
{
}
public void printproperty()
{
System.out.println("나의 IPTV는" + name + "주소의" + getsize() + "인치" + getcolor() + "컬러");
}
}
public class Main
{
public static void main(String[] args)
{
IPTV iptv = new IPTV("192.1.1.2", 32, 2048);
iptv.printproperty();
}
}