class IPTV {
private int size;
private int color;
private String address;
public IPTV(String address, int color,int size) {
this.size = size;
this.color = color;
this.address = address;
}
protected int getSize() {
return size;
}
protected int getColor() {
return color;
}
protected String getAdress() {
return address;
}
void printProperty(){
System.out.println("나의 IPTV는"+address+"주소의"+size+"인치"+color+"컬러");
}
}
class Main {
public static void main(String[] args) {
IPTV iptv = new IPTV("192.1.1.2", 2048, 32);
iptv.printProperty();
}
}*/
import java.util.*;
class ColorPoint {
private int x;
private int y;
private String color;
public ColorPoint(int x, int y,String color) {
this.x = x;
this.y = y;
this.color = color;
}
public int getX() {
return x;
}
public int getY() {
return y;
}
protected void move(int x, int y) {
this.x = x;
this.y = y;
}
}
class setXY {
ColorPoint cp = new ColorPoint(10,20,"RED");
setXY(){
cp.getX();
cp.getY();
}
}
class setColor extends setXY{
setColor(){
cp.
}
}