CHAPTER 20
CORBA
CASE STUDYWhen an interface such as Z extends more than one interface, there is a possibility that it may inherit a type, constant or exception with the same name from two different interfaces. For example,
suppose that both B and
C define a type called
Q; then the use of
Q in the
Z interface is ambiguous unless a scoped name such as
B::
Q or
C::
Q is given.
IDL does not permit an interface to inherit methods or attributes with common names from two different interfaces. All IDL interfaces
inherit from the type Object, which implies that all IDL
interfaces are compatible with the type
Object. This makes it possible to define IDL
operations that can takes as argument or return as a result a remote object reference of any type. The
bind and
resolve operations in the Naming Service are examples.
Share with your friends: