🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: aus.computers.java
Article #231

Re: Multiple interfaces

#231
From: Jeff Dillon
Date: Wed, 19 Jun 2002 03:06
30 lines
2479 bytes
Are you aware that both Cloneable and Serializable are interfaces that do
not have any methods? They are therefore exceptions. They are placeholders
of sorts to merely indicate semantics.

Jeff Dillon

"Tim Tyler" <tim@tt1.org> wrote in message news:Gxx609.3u6@bath.ac.uk...
> Russell Dodd <rdodd@alterian.com> wrote:
>
> :> > 1) If you are implementing more than a few interfaces in one class
you
> :> > are probably doing too much in one class and probably have poor
design.
> :>
> :> What about TWO interfaces?
>
> : I find in very rare to have to implement even two interfaces within the
same
> : class.
>
> Common stuff for others, though:
>
> public final class String implements Comparable, Serialisable {
> public class Date implements Clonable, Comparable, Serialisable {
> public final class Character implements Clonable, Serialisable {
> public class BitSet implements Clonable, Serialisable {
> public class RandomAccessFile implements DataInput, DataOutput {
> --
> __________
>  |im |yler  http://timtyler.org/  tim@tt1.org
Technical Details
Message-ID: <MySP8.250604$cQ3.11728@sccrnsc01>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.mathworks.com!wn3feed!worldnet.att.net!204.127.198.203!attbi_feed3!attbi.com!sccrnsc01.POSTED!not-for-mail
References: <1024283082.192985@web.apex.net.au> <EzxP8.238919$cQ3.10063@sccrnsc01> <1024391253.156369@web.apex.net.au> <1024397222.27025.0.nnrp-10.c3ad556a@news.demon.co.uk> <Gxx609.3u6@bath.ac.uk>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10a146,113f3357bc588129
X-Google-Attributes: gid10a146,public
X-Google-Thread: 10d6db,113f3357bc588129
X-Google-Attributes: gid10d6db,public
X-Google-Thread: f74b3,113f3357bc588129
X-Google-Attributes: gidf74b3,public
X-Google-ArrivalTime: 2002-06-18 20:06:21 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.mathworks.com!wn3feed!worldnet.att.net!204.127.198.203!attbi_feed3!attbi.com!sccrnsc01.POSTED!not-for-mail
From: "Jeff Dillon" <jeff@jeffdillon.com>
Newsgroups: aus.computers.java,borland.public.jbuilder.java.language,comp.lang.java.programmer
References: <1024283082.192985@web.apex.net.au> <EzxP8.238919$cQ3.10063@sccrnsc01> <1024391253.156369@web.apex.net.au> <1024397222.27025.0.nnrp-10.c3ad556a@news.demon.co.uk> <Gxx609.3u6@bath.ac.uk>
Subject: Re: Multiple interfaces
Lines: 32
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2600.0000
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000
Message-ID: <MySP8.250604$cQ3.11728@sccrnsc01>
NNTP-Posting-Host: 12.248.126.36
X-Complaints-To: abuse@attbi.com
X-Trace: sccrnsc01 1024455980 12.248.126.36 (Wed, 19 Jun 2002 03:06:20 GMT)
NNTP-Posting-Date: Wed, 19 Jun 2002 03:06:20 GMT
Organization: AT&T Broadband
Date: Wed, 19 Jun 2002 03:06:20 GMT