public abstract void VisitCustomer(TaxiCustomer customer);
public override void VisitCustomer(TaxiCustomer customer) { Console.WriteLine($"Customer: {customer.Name} has been visited by {GetType().Name}"); }
public abstract void VisitCustomer(TaxiCustomer customer);
public override void VisitCustomer(TaxiCustomer customer) { Console.WriteLine($"Customer: {customer.Name} has been visited by {GetType().Name}"); }