示例#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);
示例#3
0
 public void Remove(CustomerElement customer)
 {
     customers.Remove(customer);
 }
示例#4
0
 public void AddCustomer(CustomerElement customer)
 {
     customers.Add(customer);
 }