Visitor: Implementation and Example
Learn the Visitor design pattern by implementing an example program.
We'll cover the following...
Problem statement
Let’s imagine that we have a library that’s capable of converting between some basic HTML and plain text. However, we realize it doesn’t deal with all HTML element types. Then we realize that we don’t want to just deal with plain text. We want to convert between HTML and Markdown.
But the problem is that we ...