出典:Wikipedia
出典:『Wikipedia』 (2011/08/11 16:50 UTC 版)
In object-oriented programming and software engineering, the visitor design pattern is a way of separating an algorithm from an object structure it operates on. A practical result of this separation is the ability to add new operations to existing object structures without modifying those structures. It is one way to easily follow the open/closed principle.