December 2001
Intermediate to advanced
416 pages
8h 16m
English
The inherited members of the base class appear as if they are members of the derived class. This is why we are able to directly refer to them without qualification. However, they are not members of the derived class. Rather they maintain their membership within the declaration space of their base class.
The derived-class declaration space is searched first for an occurrence of a name within the derived class. If the name is not found there, the declaration space of the base class is searched. This is why a derived class can reuse the name of a base-class member without penalty. The derived instance is entered into the derived-class declaration space. All unqualified uses of the name within the derived ...
Read now
Unlock full access