Esempio n. 1
0
        public void Visit(IElement element)
        {
            Kid kid = (Kid)element;

            Console.WriteLine("Salesman: " + this.Name + " gave the school bag to the child: " + kid.Name);
        }
Esempio n. 2
0
        public void Visit(IElement element)
        {
            Kid kid = (Kid)element;

            Console.WriteLine("Doctor: " + this.Name + " did the health checkup of the child: " + kid.Name);
        }