示例#1
0
        static void Main()
        {
            Abstraction abstraction = new MySmartTelevision();

            abstraction.Implementor = new CableTelevision();

            Console.WriteLine(abstraction.GetGuide());

            Console.WriteLine(abstraction.PlayVideo());
        }
示例#2
0
        static void Main()
        {
            Abstraction abstraction = new MySmartTelevision();

            abstraction.Implementor = new CableTelevision();

            Console.WriteLine(abstraction.GetGuide());

            Console.WriteLine(abstraction.PlayVideo());
        }