Example #1
0
        public static void Demo(String[] args)
        {
            IService s1 = new Saving();
            IService s2 = new Draw();
            IService s3 = new Fund();

            Visitor visitor = new Visitor();

            s1.Accept(visitor);
            s2.Accept(visitor);
            s3.Accept(visitor);
        }