Article View: aus.computers.java
Article #274Re: Multiple interfaces
From: Sted Alana
Date: Mon, 17 Jun 2002 06:16
Date: Mon, 17 Jun 2002 06:16
21 lines
2073 bytes
2073 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{
> ????
> }
By observation, it seems silly to implement two or more interfaces with the
same abstract methods. First because its extraneous, and second because of
the name clashes. How is Java suppose to know which abstract methods
requries implementation? How do other programming languages resolve this
problem?
Technical Details
Message-ID:
<3d0d7f8d_1@news.iprimus.com.au>Path:
arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!feed.cgocable.net!feed.tor.primus.ca!feed.nntp.primus.ca!news.tor.primus.ca!news.iprimus.com.au!not-for-mailReferences:
<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: f74b3,113f3357bc588129 X-Google-Attributes: gidf74b3,public X-Google-Thread: 10a146,113f3357bc588129 X-Google-Attributes: gid10a146,public X-Google-Thread: 10d6db,113f3357bc588129 X-Google-Attributes: gid10d6db,public X-Google-ArrivalTime: 2002-06-16 23:18:46 PST Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!feed.cgocable.net!feed.tor.primus.ca!feed.nntp.primus.ca!news.tor.primus.ca!news.iprimus.com.au!not-for-mail From: "Sted Alana" <Sted_Alana@hotmail.com> Newsgroups: aus.computers.java,borland.public.jbuilder.java.language,comp.lang.java.programmer References: <1024283082.192985@web.apex.net.au> <JScP8.111$Fv1.17660@newsread2.prod.itd.earthlink.net> <1024289793.45649@web.apex.net.au> Subject: Re: Multiple interfaces Lines: 25 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 X-Original-NNTP-Posting-Host: 203.134.119.141 Message-ID: <3d0d7f8d_1@news.iprimus.com.au> X-Original-NNTP-Posting-Host: 127.0.0.1 Organization: iPrimus Customer - reports relating to abuse should be sent to abuse@iprimus.com.au Date: Mon, 17 Jun 2002 15:46:03 +0930 NNTP-Posting-Host: 203.134.67.67 X-Complaints-To: news@primus.ca X-Trace: news.tor.primus.ca 1024295155 203.134.67.67 (Mon, 17 Jun 2002 02:25:55 EDT) NNTP-Posting-Date: Mon, 17 Jun 2002 02:25:55 EDT