O'Reilly logo

SAMS Teach Yourself C++ in 10 Minutes SECOND EDITION by Jesse Liberty

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required