Article View: aus.computers.java
Article #279Re: Multiple interfaces
From: Laurence V
Date: Mon, 17 Jun 2002 08:55
Date: Mon, 17 Jun 2002 08:55
27 lines
1785 bytes
1785 bytes
>Nothing in particular, it's a general observation related to custom
>interfaces:
>
>interface Intf1{
> public void X();
>}
>
>interface Intf2{
> public void X();
>}
>
>class MyClass implements Intf1, Intf2{
> ????
>}
It just highlights the importance of choosing method names very
carefully, especially so in interfaces.
It does not highlight a major problem in the language, as you seem to
suggest. In 6 years of Java programming I don't recall ever being
faced with method name collisions due to implementing several
interfaces.
L.
==
Check out JINX - The Java Information Exchange, http://jinx.swiki.net
Technical Details
Message-ID:
<3d0d962f.216399@news.clara.net>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newspeer.clara.net!news.clara.net!doris.uk.clara.netReferences:
<1024283082.192985@web.apex.net.au> <JScP8.111$Fv1.17660@newsread2.prod.itd.earthlink.net> <1024289793.45649@web.apex.net.au>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10d6db,113f3357bc588129 X-Google-Attributes: gid10d6db,public X-Google-Thread: 10a146,113f3357bc588129 X-Google-Attributes: gid10a146,public X-Google-Thread: f74b3,113f3357bc588129 X-Google-Attributes: gidf74b3,public X-Google-ArrivalTime: 2002-06-17 01:52:16 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newspeer.clara.net!news.clara.net!doris.uk.clara.net From: o@o (Laurence V) Newsgroups: aus.computers.java,borland.public.jbuilder.java.language,comp.lang.java.programmer Subject: Re: Multiple interfaces Date: Mon, 17 Jun 2002 08:55:12 GMT Message-ID: <3d0d962f.216399@news.clara.net> References: <1024283082.192985@web.apex.net.au> <JScP8.111$Fv1.17660@newsread2.prod.itd.earthlink.net> <1024289793.45649@web.apex.net.au> X-Newsreader: Forte Free Agent 1.21/32.243 X-Complaints-To: abuse@clara.net (please include full headers) X-Trace: 3e80020061629b68806221000430860613d4a402b828e97ec34687003d0da330 NNTP-Posting-Date: Mon, 17 Jun 2002 09:52:00 BST Lines: 27