VisitorPattern (visitor pattern) ----- Java / .Net

In the visitor pattern (Visitor Pattern), we use a visitor class, it changes the algorithm execution element classes. In this way, the algorithm elements can change as the visitor change. This type of design pattern belongs behavioral patterns. Depending on the mode, the subject has received a visitor element objects, such objects can visitors processing operations on the element object.

Guess you like

Origin www.cnblogs.com/vic-tory/p/12147466.html