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. Also, feel free to checkout my egghead.io profile page for addition free and subscription lessons, collections, and courses. As always, you can reach out to me on Twitter at @elijahmanor. Thanks and have a blessed day!

Reddit