Calling the Superclass

Line 30 of Listing 22.6 calls on anExternalInterface's GetOperatorChar() when the tape file has run out of commands. Prefixing the function call with the name of the class where the function is defined followed by the scope resolution operator causes this to occur.

Referring to the Superclass Implementation Is Dangerous

One of the most common problems in object-oriented systems where the inheritance tree evolves over time occurs when a new class is inserted into the tree between a derived class and its former superclass. If you were to insert such a class after making your call from the derived class to the superclass directly, ...

Get SAMS Teach Yourself C++ in 10 Minutes SECOND EDITION 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.