May 2002
Beginner
320 pages
6h 18m
English
As you've seen, a derived class can override the functions of its superclass. Member functions of the derived class can even call the functions of the superclass—including those implementations they are overriding. Figure 22.3 shows the possible variations.

This diagram shows an object instance, which consists of the derived class and its superclass. When a function outside the object calls on SomeFunction(), the call is handled completely by the derived class and is not passed on to the corresponding superclass implementation. When a function outside the object calls on ...
Read now
Unlock full access