Exemplo n.º 1
0
        public void Visit(IElement element)
        {
            Boy boy = (Boy)element;

            Console.WriteLine("LaundaryPerson: " + this.Name + " gave the clothes to the boy: " + boy.BoyName);
        }
Exemplo n.º 2
0
        public void Visit(IElement element)
        {
            Boy boy = (Boy)element;

            Console.WriteLine("Postman: " + this.Name + " gave the mail to the boy: " + boy.BoyName);
        }