Lecture overview -- Keyboard shortcut: 'u'  Previous page: Multiple inheritance: Ambiguities -- Keyboard shortcut: 'p'  Next page: Is repeated inheritance possible? -- Keyboard shortcut: 'n'  Lecture notes - all slides and notes together  slide -- Keyboard shortcut: 't'  Help page about these notes  Alphabetic index  Course home  Lecture 4 - Page 16 : 24
Notes about C++
Abstraction Mechanisms, Part 2
Replicated base class

Need for B and C to have separate A parts in a D-object

  • The C++ Programming Language: Page 394
 

To see this image you must download and install the SVG plugin from Adobe.In Firefox please consultthis page.

The base class A is replicated

y:/Kurt/Files/Advanced-programming-cpp/cpp/kn/non-virtual-bases/non-virtual-1.ccIllustration of replication of class A.


y:/Kurt/Files/Advanced-programming-cpp/cpp/kn/non-virtual-bases/non-virtual-1-outputProgram output.