Exemple #1
0
        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);
        }
Exemple #2
0
 public void Visit(ErnieModem m)
 {
     Console.WriteLine("Ernie");
 }