...
All generated proxy classes inherit directory or indirectly from the Ice::ObjectPrx
proxy class, reflecting the fact that all Ice interfaces implicitly inherit from Ice::Object
.
Ztop |
---|
Interface Inheritance
Inheritance relationships among Slice interfaces are maintained in the generated C++ classes. For example:
Code Block | ||||
---|---|---|---|---|
| ||||
module M
{
interface A { ... }
interface B { ... }
interface C extends A, B { ... }
} |
The generated code for CPrx
reflects the inheritance hierarchy:
Code Block | ||||
---|---|---|---|---|
| ||||
namespace M
{
class CPrx : public virtual APrx, public virtual 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.
Ztop |
---|
Receiving Proxies
Client-side application code never manipulates proxy class instances directly. In fact, you are not allowed to instantiate a proxy class directly. The following code will not compile because the base proxy class for Object has no public constructor:
...