Multiple Inheritance and the Delegation (Tie) Approach (Example 4)

Example 4 introduces multiple IDL inheritance and shows you how to implement multiply inheriting interfaces in C++ and Java. The following sections discuss multiple inheritance issues in greater detail, paying particular attention to dealing with the limitations of Java.

Multiple Inheritance of Interfaces

In C++, the servant inheritance hierarchy is generally arranged in parallel to the IDL interface inheritance hierarchy. For example, Figure 2.5 illustrates the servant inheritance hierarchy for the BookRepository_FlexibleCollectionImpl class.

Figure 2.5. The C++ servant inheritance hierarchy for the BookRepository_FlexibleCollectionImpl class.

When ...

Get Pure CORBA now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.