Esempio n. 1
0
        static void Main(string[] args)
        {
            Driver driver = new Driver();
            Auto   auto   = new Auto();

            driver.Travel(auto);
            Camel      camel          = new Camel();
            ITransport camelTransport = new CamelToTransportAdapter(camel);

            driver.Travel(camelTransport);

            Console.Read();
        }
Esempio n. 2
0
 public CamelToTransportAdapter(Camel c)
 {
     camel = c;
 }