Visitor pattern defines mechanism to apply operations on nodes in hierarchy. New operations can be added without altering the node interface.
Mình thấy trong Visitor có dùng: Bridge, Chain, nhưng mình ko mấy gì thích pattern này, thấy nó dư thừa và vi phạm I(Interface segregation) trong SOLID.
Share 12
AUG
2016
AUG
2016
0