Element Interface (Accept method):?
- The elements in the object structure (Book, Fruit) implement the Accept
method, which is designed to accept a visitor. This method typically calls the
appropriate visit method (Visit(Book book) or Visit(Fruit fruit))
on the visitor.