Article View: aus.computers.java
Article #285Re: Multiple interfaces
From: Jeff Dillon
Date: Tue, 18 Jun 2002 03:13
Date: Tue, 18 Jun 2002 03:13
31 lines
2284 bytes
2284 bytes
1) If you are implementing more than a few interfaces in one class you are probably doing too much in one class and probably have poor design. 2) If you have this problem you also have a poor naming convention. Jeff Dillon "Tristan Reeves" <moonshine@apex.net.au> wrote in message news:1024283082.192985@web.apex.net.au... > Hi, > > I am fairly new to Java, and I am sure this question has been raised on > numerous occasions. Nevertheless... > > I was saddened to find out that Java fails miserably in implemeting multiple > interfaces which share a method signature. I know the standard contorsion of > using inner classes, one for each interface, have the inner classes delegate > to a method on the outer class, and then allowing access to instances of > these inner classes via an accessor method on the outer class. > > Does anyone know if there are any plans to fix this ridiculous state of > affairs? Or, is there any other way to resolve name-clashes? > > Regards, > Tristan. > >
Technical Details
Message-ID:
<EzxP8.238919$cQ3.10063@sccrnsc01>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.mathworks.com!wn3feed!worldnet.att.net!204.127.198.203!attbi_feed3!attbi.com!sccrnsc01.POSTED!not-for-mailReferences:
<1024283082.192985@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 20:13:41 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.mathworks.com!wn3feed!worldnet.att.net!204.127.198.203!attbi_feed3!attbi.com!sccrnsc01.POSTED!not-for-mail From: "Jeff Dillon" <jeff@jeffdillon.com> Newsgroups: aus.computers.java,borland.public.jbuilder.java.language,comp.lang.java.programmer References: <1024283082.192985@web.apex.net.au> Subject: Re: Multiple interfaces Lines: 33 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Message-ID: <EzxP8.238919$cQ3.10063@sccrnsc01> NNTP-Posting-Host: 12.248.126.36 X-Complaints-To: abuse@attbi.com X-Trace: sccrnsc01 1024370020 12.248.126.36 (Tue, 18 Jun 2002 03:13:40 GMT) NNTP-Posting-Date: Tue, 18 Jun 2002 03:13:40 GMT Organization: AT&T Broadband Date: Tue, 18 Jun 2002 03:13:41 GMT