示例#1
0
        public static void Run()
        {
            Console.WriteLine("--- Start Question 3 ---");
            CarControl methods = new CarControl();

            Console.WriteLine(methods.Gas());
            Console.WriteLine(methods.Location());
            IProxyMethod proxy = new CarProxy();

            Console.WriteLine(proxy.Gas());
            Console.WriteLine(proxy.Location());
            Console.WriteLine("--- End Question 3 ---");
        }