Method overriding is the same as usual, as the overriding definition in the subclass hides the access to the overriden methods from its superclasses. Listing 4 illustrates this:
Listing 4: | overridemethod |
Note that in this case, the overriding definition refers to the overriden methods inherited from both superclasses.