Exemple #1
0
        public void Using()
        {
            var hayes = new AHayesModem();
            var zoom  = new AZoomModem();
            var ernie = new AErnieModem();
            var unix  = new AUnixModemConfigurator();

            hayes.Accept(unix);
            zoom.Accept(unix);
            ernie.Accept(unix);
        }
Exemple #2
0
 public void Visit(AHayesModem m)
 {
     Console.WriteLine("Hayes A");
 }