Esempio n. 1
0
        static void Main(string[] args)
        {
            Factory     factory     = new Factory();
            Delivery    delivery    = new Delivery();
            Consulatant consulatant = new Consulatant();
            Order       order       = new Order(factory, delivery, consulatant);

            Client.ClientCode(order);
        }
Esempio n. 2
0
 public Order(Factory factor, Delivery deliv, Consulatant cons)
 {
     this.factory    = factor;
     this.delivery   = deliv;
     this.consulatnt = cons;
 }