Does this mean that the interface passed into the visitor would then still need to have appropriate methods exposed that would do the actual configuring?
@Samorox, yes that will be the case, for example in the case of an email sender, it will provide a specific object which will be responsible for sending email, and so on.
Well explained, I liked that you started with an example without the visitor design pattern and then changed it accordingly. Thank you!
The example is not very appropriate for visitor. Its main purpose is the double dispatch. But we do not see it here.
Does this mean that the interface passed into the visitor would then still need to have appropriate methods exposed that would do the actual configuring?
@Samorox, yes that will be the case, for example in the case of an email sender, it will provide a specific object which will be responsible for sending email, and so on.
Does not sound correct example as we are changin all files
4:59