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);
public void Remove(CustomerElement customer) { customers.Remove(customer); }
public void AddCustomer(CustomerElement customer) { customers.Add(customer); }