추상 클래스의 선언과 구현 그리고 생성자 주입 class Switchable(ABC): @abstractmethod def turn_on(self): pass @abstractmethod def turn_off(self): pass class LightBulb(Switchable): def turn_on(self): print("Lightbulb: turned on") def turn_off(self): print("Lightbulb: turned off") class Fan(Switchable): def turn_on(self): print("Fan: turned on") def turn_off(self): print("Fan: turned off") class PowerSwitch: def __ini..