interface RemoteControl {
    void turnOn();

    void turnOff();
}

class TelevisionA implements RemoteControl {
    public void turnOn() {
        System.out.println("TV A가 켜졌습니다.");
    }

    public void turnOff() {
        System.out.println("TV A가 꺼졌습니다.");
    }
}

class TelevisionB implements RemoteControl {
    public void turnOn() {
        System.out.println("TV B가 켜졌습니다.");
    }

    public void turnOff() {
        System.out.println("TV B가 꺼졌습니다.");
    }
}

public class InterfaceTest1 {
    public static void main(String args[]) {
        RemoteControl obj = new TelevisionA();


        obj.turnOn();
        obj.turnOff();

        obj = new TelevisionB();
        obj.turnOn();
        obj.turnOff();
    }
}  