June 2025
Intermediate to advanced
1093 pages
33h 24m
English
Figure 18.3 shows that the members of all base classes all become part of the derived class. If both base classes each have a predecessor, then this also becomes part of the final class, as illustrated in Figure 18.4.
But what if the base classes of both predecessors are the same? So if Derived1, for example, has the Base base class, and Derived2 does as well? Then, logically, Base is part of both Derived1 and Derived2. And if you now merge Derived1 and Derived2 into DerivedDerived, two Bases come together. DerivedDerived thus contains Base twice. You can see this situation illustrated in Figure 18.5.
Figure 18.4 Members of the predecessors also become part of ...
Read now
Unlock full access