Pretty Polly Morphic

As we have just seen, the "standard" method of adding polymorphism to our programs is, to use a technical term, ugly; that is, it is error prone and virtually impossible to maintain. After a few more definitions, we're going to see how to fix these problems with an advanced technique I refer to as polymorphic objects.

Get Learning to Program in C++ now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.