Let’s discuss the Abstract Factory pattern to continue our tour of design patterns in C++ . This is an interesting technique for maintaining coherence between objects, while allowing easy switching or swapping of object sets. This can be useful for allowing an application to use multiple UI toolkits (Apple vs. Windows), allowing different enemies with different capabilities in a game, using different submodels in a complicated simulation, and much more.
Hi, I’m Avi Tevet, currently a freelance developer based in Portland, OR. I’m going to be writing about not only how to use technology, but also when to use it.