public void Using() { var hayes = new HayesModem(); var zoom = new ZoomModem(); var ernie = new ErnieModem(); var unix = new UnixModemConfigurator(); hayes.Accept(unix); zoom.Accept(unix); ernie.Accept(unix); }
public void Visit(ZoomModem m) { Console.WriteLine("Zoom"); }