Exemplo n.º 1
0
        public override string VisitCustomer(CustomerElement customer)
        {
            string    s;
            Customer2 customer2 = customer as Customer2;

            customer2.Taked = true;
            return(s = $"Customer's mobile : {customer2.Name},\nDestination: {customer2.PlaceToGo}\nIn Process: {customer2.Taked}");
        }
 public abstract string VisitCustomer(CustomerElement customer);
Exemplo n.º 3
0
 public void Remove(CustomerElement customer)
 {
     customers.Remove(customer);
 }
Exemplo n.º 4
0
 public void AddCustomer(CustomerElement customer)
 {
     customers.Add(customer);
 }