difference between proxies from class and from interface

in Help Center
Hi,
Is possible something like:
Can I create interface by extending "interface from class" C? and the same - if I can create class D implementing only "interface from class" C?
I know that in normal languages it is not possible, but there, how I see ICE works, if I pass class by reference it is the same like I pass "interface from class"... and because it is only interface, I would like to implement more these interfaces in one.
Is possible something like:
class C { string str; nonmutating string getString(); }; interface I extends C { }; class D implements C { };
Can I create interface by extending "interface from class" C? and the same - if I can create class D implementing only "interface from class" C?
I know that in normal languages it is not possible, but there, how I see ICE works, if I pass class by reference it is the same like I pass "interface from class"... and because it is only interface, I would like to implement more these interfaces in one.
0
Comments
but I would not like to use multiple class inheritace...
My qouestion was there because I thougth that
is somehow implemented like:
and when C is used for passing by reference, it is that interface, if it is passed by value, it is that class.
And I would like to implement only more these interfaces (thats why I used word "implements" and not "extends").
On other hand if it is not possible, it is OK.
thank you,
Michal
There is no specific mechanism for inheriting "just the interface part" of a class, and it is illegal for an interface to derive from a class. But you can rearrange the Slice as follows to get the same effect:
Cheers,
Michi.