Re: inheritance bug?
Isaac Gouy <[email protected]> Fri, 5 Mar 2004 14:02:54 -0800 (PST)
| Newsgroups | gmane.comp.lang.nice.general |
|---|---|
| Message-ID | <[email protected]> |
> If I understand correctly, the situation is:
> class A {}
> void methodX(A) { ... }
> and you now want:
> interface I {}
> class A implement I {}
> void methodX(I);
> methodX(A a) { ... }
> The point is that here you have the knowledge of the package that
> defines methodX (otherwise you would not even know it exists). So you
> have the opportunity to do the above refactoring.
That wasn't what I was trying to say.
I don't have the source for class A - I do know the method signature
from the docs, and I want to use class A alongside some new class B by
defining an interface which both A and B will implement.
So refactoring is not an option.
__________________________________
Do you Yahoo!?
Yahoo! Search - Find what youre looking for faster
http://search.yahoo.com
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click