1. In Visitor pattern, we use a visitor class which changes the executing algorithm of an element class.
2. By this way, execution algorithm of element can vary as and when visitor varies.
3. This pattern comes under behavior pattern category.
4. As per the pattern, element object has to accept the visitor object so that visitor object handles the operation on the element object.
Posted Date:- 2021-09-06 22:51:29