Example #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);
        }
Example #2
0
 public CamelToTransportAdapter(Camel c)
 {
     camel = c;
 }