Article View: borland.public.jbuilder.java.language
Article #8476extending interfaces and final variables in inner classes
From: Yonatan Taub
Date: Fri, 23 Mar 2001 22:52
Date: Fri, 23 Mar 2001 22:52
14 lines
1254 bytes
1254 bytes
When extending an interface the syntax has to be public MyInterface extends AnotherInterface ... Why does the compiler issues a compilation error when using the syntax public MyInterface implements AnotherInterface ? When referring to outer objects or variables within an inner class they have to be declared final otherwise you get a compilation error. What's the reason for that?
Technical Details
Message-ID:
<3abbda8f_2@dnews>Path:
arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!hermes2.visi.com!news-out.visi.com!zeus.visi.com!news-out.visi.com!hermes.visi.com!hub.org!hub.org!PeerFeed.KWeb.on.ca!dnews!132.64.12.44Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,634447406d21cfca,start X-Google-Attributes: gidf74b3,public X-Google-ArrivalTime: 2001-03-23 16:28:06 PST From: "Yonatan Taub" <yonatanta@bashan.co.il> Newsgroups: borland.public.jbuilder.java.language Subject: extending interfaces and final variables in inner classes Date: Sat, 24 Mar 2001 00:52:35 +0200 Lines: 17 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.44 Message-ID: <3abbda8f_2@dnews> X-Trace: 23 Mar 2001 15:21:51 -0800, 132.64.12.44 Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!hermes2.visi.com!news-out.visi.com!zeus.visi.com!news-out.visi.com!hermes.visi.com!hub.org!hub.org!PeerFeed.KWeb.on.ca!dnews!132.64.12.44