示例#1
0
        public static void Question2Solution()
        {
            ITransport car   = new Car();
            ITransport truck = new Truck();
            ITransport train = new Train();

            TransportManager.DoSomeLogic(car);
            TransportManager.DoSomeLogic(truck);
            TransportManager.DoSomeLogic(train);
        }