🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: aus.computers.java
Article #906

Re: Multiple interface implementation, etc.

#906
From: Cannon
Date: Fri, 10 Mar 2000 00:00
61 lines
2720 bytes
> file), also you can not have final members declared in a interface ...etc

Ops, wrong statement, by final I meant it does not make sense declaring the
accessibility of members in the interface.
That is modifiers protected and private want work. final is encouraged and I
personally use it a lot to declare constances in a interface to reduce
clatter.



Cannon <cannon@nospam.basketball.net.au> wrote in message
news:<sb_x4.105$0n6.6058@nsw.nnrp.telstra.net>...
> Ray,
>
> If you tried it you would realise that you can do what you had in mind.
> Java unlike C++ does not support multiple inheritance but supports a
special
> interface mechanisam.
> Special, because an interface can only declare methods (similar to an *.h
> file), also you can not have final members declared in a interface ...etc
> You declare pupblic if you want access from outside your package.
>
> For your scenario I recomend you get JBuilder 3 (foundation is free) or
> similar.
> This will cut your development time 80%.
> JBuilder has an JBCL library which is easier to manipulate then swing.
>
> Hope this helps.
>
>
> Raymond George Montalban <rmontal@ozemail.com.au> wrote in message
> news:38C79C2C.7A336B02@ozemail.com.au...
> > To all,
> >
> > Could anyone help me with this problem please? I have asked around and
> > basically
> > everyone I know or am in contact with know *nothing* about Java. Anyway,
> >
> > is it legal or possible to implement multiple interfaces?
> >
> > I.e., is this following legal ...
> >
> > public class GrammarWorld extends Applet implements Runnable,
> > ActionListener
> > {
> > .
> > .
> > .
> > }
> >
> > ???
> >
> > (The line starting with "public class ..." is of my concern).
> >
> > If I can't do the above, how do I implement both the ActionListener and
> > Runnable interaces
> > at the same time?
> >
>
>
>
Technical Details
Message-ID: <ru_x4.107$0n6.6839@nsw.nnrp.telstra.net>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <38C79C2C.7A336B02@ozemail.com.au> <sb_x4.105$0n6.6058@nsw.nnrp.telstra.net>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10d6db,a15af3a73d14f86d
X-Google-Attributes: gid10d6db,public
From: "Cannon" <cannon@nospam.basketball.net.au>
Subject: Re: Multiple interface implementation, etc.
Date: 2000/03/10
Message-ID: <ru_x4.107$0n6.6839@nsw.nnrp.telstra.net>
X-Deja-AN: 595466538
References: <38C79C2C.7A336B02@ozemail.com.au> <sb_x4.105$0n6.6058@nsw.nnrp.telstra.net>
X-Priority: 3
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
X-Complaints-To: abuse@telstra.net
X-Trace: nsw.nnrp.telstra.net 952661015 203.35.100.252 (Fri, 10 Mar 2000 15:03:35 EST)
Organization: Customer of Telstra Big Pond Direct
X-MSMail-Priority: Normal
Reply-To: "Cannon" <cannon@nospam.basketball.net.au>
NNTP-Posting-Date: Fri, 10 Mar 2000 15:03:35 EST
Newsgroups: aus.computers.java