...
Another method defined by every proxy class is ice_staticId
, which returns the type ID string corresponding to the interface. As an example, for the Slice interface Simple
in module M
, the string returned by ice_staticId
is "::M::Simple"
.
Interface Inheritance in Python
Inheritance relationships among Slice interfaces are maintained in the generated Python classes. For example:
Code Block |
---|
|
interface A { ... }
interface B { ... }
interface C extends A, B { ... } |
The generated code for CPrx
reflects the inheritance hierarchy:
Code Block |
---|
|
class CPrx(APrx, BPrx):
... |
Given a proxy for C
, a client can invoke any operation defined for interface C
, as well as any operation inherited from C
's base interfaces.
Ice.ObjectPrx
Class in Python
...