Ejemplo n.º 1
0
        static void Main()
        {
            Driver driver = new Driver();
            Auto   auto   = new Auto();

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

            driver.Travel(camelTransport);
        }
Ejemplo n.º 2
0
 public CamelToTransportAdapter(Camel c)
 {
     camel = c;
 }