Article View: borland.public.jbuilder.java.language
Article #8478Re: extending interfaces and final variables in inner classes
From: John McGrath TeamB
Date: Sat, 24 Mar 2001 06:22
Date: Sat, 24 Mar 2001 06:22
24 lines
1536 bytes
1536 bytes
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:
<MPG.1525f34346561ad298a09f@forums.borland.com>Path:
arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!news-out.usenetserver.com!news-out-sjo.usenetserver.com!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!dnews!209.92.40.60References:
<3abbda8f_2@dnews>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-23 22:26:04 PST From: John McGrath [TeamB] <ng-b@JPMcGrath.net> Newsgroups: borland.public.jbuilder.java.language Subject: Re: extending interfaces and final variables in inner classes Date: Sat, 24 Mar 2001 01:22:11 -0500 Message-ID: <MPG.1525f34346561ad298a09f@forums.borland.com> References: <3abbda8f_2@dnews> X-Newsreader: MicroPlanet Gravity v2.30 NNTP-Posting-Host: 209.92.40.60 X-Trace: 23 Mar 2001 22:17:47 -0800, 209.92.40.60 Lines: 24 Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!news-out.usenetserver.com!news-out-sjo.usenetserver.com!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!dnews!209.92.40.60