![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | Abstraction Mechanisms, Part 2 - slide 19 : 24 |
Per default you get replicated base classes in C++
It is also possible for B and C to to share their A parts in a D-object
![]() | Illustration of shared, virtual, base class A. |
![]() | Program output. |
Every base class of a given name that is specified to be virtual will be represented by a single object of that class, §15.2.4