The Visitor pattern is most useful when:
-
A
The object structure rarely changes but new operations are frequently added
-
B
New types of objects are added frequently but operations stay constant
-
C
Objects need to be notified of changes in other objects
-
D
A complex object must be built step by step