On Thu, 26 Nov 2009 19:43:30 -0800 (PST), Amit Jain
<> wrote, quoted or indirectly quoted someone
who said :
>Above implementation of interface in class A will never complies
>because of "void method();" declared in both I1 and I2. And we want
>the implementation of I1 and I2 in class A only. How can we acheive
>this in such situations.
In Java, you can't have two methods that differ only in return type.
There is no Eiffelian rename technique to resolve such conflicts. You
have to manually rename the method in one of your interfaces.
--
Roedy Green Canadian Mind Products
http://mindprod.com
I mean the word proof not in the sense of the lawyers, who set two half proofs equal to a whole one, but in the sense of a mathematician, where half proof = 0, and it is demanded for proof that every doubt becomes impossible.
~ Carl Friedrich Gauss