Exemplo n.º 1
0
        static void Main(string[] args)
        {
            RemoteControl remoteControl = new ConcreteRemoteControl();

            //remoteControl.TV = new SanXinTV();
            remoteControl.TV = new ChangHongTV();
            remoteControl.On();
            remoteControl.Off();
            remoteControl.SwitchChannel();
            Console.ReadKey();
        }