in Education by (55.8k points)

What is Visitor pattern?

1 Answer

0 votes
by (55.8k points)
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.

Related questions

0 votes
asked Sep 4 in Education by JackTerrance (1.9m points)
0 votes
asked Aug 30 in Education by JackTerrance (1.9m points)
...