Lecture overview -- Keyboard shortcut: 'u'  Previous page: Base class access - the C++ rules -- Keyboard shortcut: 'p'  Next page: Discussion: No single most general class in C++ -- 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 23 : 24
Notes about C++
Abstraction Mechanisms, Part 2
Base class access - Examples

We show a few ABC examles that use base class access specifiers

A mariage of convenience between B and C

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/base-class-access/base-class-access-1a.ccClass D inherits privately from B and publically from C.


y:/Kurt/Files/Advanced-programming-cpp/cpp/kn/base-class-access/base-class-access-2.ccSame setup: Which variables can access which objects.


y:/Kurt/Files/Advanced-programming-cpp/cpp/kn/base-class-access/base-class-access-2.ccSame as above - with answers.


Go to exerciseFriends and 'enemies' of a class with private and public bases