0
What is Visitor pattern?

Open 1 Answers 22 Views Education

What is Visitor pattern?

1 Answer

0
What is Visitor pattern?
In Visitor pattern, we use a visitor class which changes the executing algorithm of an element class. By this way, execution algorithm of element can vary as and when visitor varies. This pattern comes under behavior pattern category. As per the pattern, element object has to accept the visitor object so that visitor object handles the operation on the element object.
by (52.6k points)
...