Article View: borland.public.jbuilder.java.language
Article #8480Re: extending interfaces and final variables in inner classes
From: Yonatan Taub
Date: Sat, 24 Mar 2001 09:47
Date: Sat, 24 Mar 2001 09:47
32 lines
2001 bytes
2001 bytes
OK, it makes since. How about my other question about variables referred from inner classes? Thanks!! "John McGrath [TeamB]" <ng-b@JPMcGrath.net> wrote in message news:MPG.1525f34346561ad298a09f@forums.borland.com... > On Sat, 24 Mar 2001 00:52:35 +0200, Yonatan Taub wrote: > > > Why does the compiler issues a compilation error when using > > the syntax > > > > public MyInterface implements AnotherInterface > > The simplest answer is because the Java language grammar does > not allow it. > > In terms of the grammar of the language, it would certainly have > been possible to allow that syntax. However, the reason it does > not is that an interface in Java does not have an implementation > (by definition). So it would be rather strange to write that an > interface implements anything. > > -- > Regards, > > John McGrath [TeamB] > > --------------------------------------------------- > Before sending me e-mail, please read: > http://www.JPMcGrath.net/newsgroups/e-mail.html
Technical Details
Message-ID:
<3abc6d16_1@dnews>Path:
arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!bignews.mediaways.net!news-fra1.dfn.de!news-koe1.dfn.de!news-was.dfn.de!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!dnews!132.64.12.115References:
<3abbda8f_2@dnews> <MPG.1525f34346561ad298a09f@forums.borland.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,634447406d21cfca X-Google-Attributes: gidf74b3,public X-Google-ArrivalTime: 2001-03-24 01:52:32 PST From: "Yonatan Taub" <yonatanta@bashan.co.il> Newsgroups: borland.public.jbuilder.java.language References: <3abbda8f_2@dnews> <MPG.1525f34346561ad298a09f@forums.borland.com> Subject: Re: extending interfaces and final variables in inner classes Date: Sat, 24 Mar 2001 11:47:05 +0200 Lines: 34 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 NNTP-Posting-Host: 132.64.12.115 Message-ID: <3abc6d16_1@dnews> X-Trace: 24 Mar 2001 01:47:02 -0800, 132.64.12.115 Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!supernews.com!bignews.mediaways.net!news-fra1.dfn.de!news-koe1.dfn.de!news-was.dfn.de!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!dnews!132.64.12.115