Example #1
0
        static void Main(string[] args)
        {
            Client client = new Client();
            Auto   auto   = new Auto("Audi RS", "Sport Car", 20000);

            Console.WriteLine("Calatorie cu masina");
            client.Travel(auto);
            Console.WriteLine("-------------------------------------");
            Camila camel = new Camila(500);
            //Adapter
            ITransport camelTransport = new CamilaTransportAdapter(camel);

            Console.WriteLine("Calatorie cu Camila");
            client.Travel(camelTransport);

            Console.ReadLine();
        }
Example #2
0
 public CamilaTransportAdapter(Camila c)
 {
     camel = c;
 }