Design Pattern Riddle #23

a. If you need a new method across a structure of classes,
Then I have the design pattern for you.
If you aren’t overly concerned about encapsulation,
Then I can be useful despite my OO taboo!

a. Visitor

Need help? Here is a list of remaining Design Patterns.

Post a comment with your guess :)

~/riddle by me

If you enjoyed this post, please consider sharing it with others via the following Twitter or Reddit buttons. I also have a YouTube Channel with free web development videos that you are welcome to watch and/or subscribe. As always, you can reach out to me on Twitter at @elijahmanor. Thanks and have a blessed day!