Can the visitor modify the object it visits

Viewed 1468

When using the Visitor Pattern, can the visit(object) method update or modify the object it visits or is it simply supposed to only use the object in performing some computation and returning the computation result?

Thanks

4 Answers
Related