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); }
public Order(Factory factor, Delivery deliv, Consulatant cons) { this.factory = factor; this.delivery = deliv; this.consulatnt = cons; }