Article View: aus.computers.java
Article #905Re: Multiple interface implementation, etc.
From: Cannon
Date: Fri, 10 Mar 2000 00:00
Date: Fri, 10 Mar 2000 00:00
45 lines
2065 bytes
2065 bytes
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:
<sb_x4.105$0n6.6058@nsw.nnrp.telstra.net>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<38C79C2C.7A336B02@ozemail.com.au>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: <sb_x4.105$0n6.6058@nsw.nnrp.telstra.net> X-Deja-AN: 595461293 References: <38C79C2C.7A336B02@ozemail.com.au> X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 X-Complaints-To: abuse@telstra.net X-Trace: nsw.nnrp.telstra.net 952659800 203.35.100.252 (Fri, 10 Mar 2000 14:43:20 EST) Organization: Customer of Telstra Big Pond Direct Reply-To: "Cannon" <cannon@nospam.basketball.net.au> NNTP-Posting-Date: Fri, 10 Mar 2000 14:43:20 EST Newsgroups: aus.computers.java