Home  >  Article  >  Backend Development  >  Can the visitor of the visitor pattern actually be regarded as the strategy of the strategy pattern?

Can the visitor of the visitor pattern actually be regarded as the strategy of the strategy pattern?

WBOY
WBOYOriginal
2016-09-24 09:03:14973browse

Visitors in visitor mode can actually be regarded as strategies in strategy mode? Can you look at it this way?

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn