public void Visit(IElement element) { Boy boy = (Boy)element; Console.WriteLine("LaundaryPerson: " + this.Name + " gave the clothes to the boy: " + boy.BoyName); }
public void Visit(IElement element) { Boy boy = (Boy)element; Console.WriteLine("Postman: " + this.Name + " gave the mail to the boy: " + boy.BoyName); }