public void Visit(HastyPerson e) { if (e.VeryHasty()) { Console.WriteLine("I drive as fast as I can"); } else { Console.WriteLine("I drive fast"); } }
public void Visit(HastyPerson e) { if (e.VeryHasty()) { Console.WriteLine("I drive slowly. Clink clink clink..."); } else { Console.WriteLine("I drive very slowly. Clink clink clink..."); } }