innoPath interview question

what is visitor pattern