🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: aus.computers.java
Article #234

Re: Multiple interfaces

#234
From: Tris Orendorff
Date: Thu, 20 Jun 2002 17:01
37 lines
2775 bytes
"Darryl L. Pierce" <mcpierce@databasix.com> wrote in
news:pan.2002.06.17.07.46.24.235390.777@databasix.com: 

> On Mon, 17 Jun 2002 00:56:34 -0400, Tristan Reeves wrote:
> 
>> Nothing in particular, it's a general observation related to custom
>> interfaces:
>> 
>> interface Intf1{
>>     public void X();
>> }
>> 
>> interface Intf2{
>>     public void X();
>> }
>> 
>> class MyClass implements Intf1, Intf2{
>>     ????
>> }
> 
> What's the problem with the above? In true multiple inheritance, where
> you're inheriting multiple _implementations_, the diamond-of-death
> occurs where you're not sure which _inherited_ implementation to
> invoke first, or whether it's desirable to invoke one first. With
> Java, you have multiple inheritance on at the _interface_ level, which
> alleviates the diamond-of-death problem: you only have one inherited
> implementation on 

I'm sorry.  What exactly is the "the diamond-of-death?"


-- 
----- BEGIN GEEK CODE BLOCK -----
Version: 3.12
GCS d++ s a C+ UC++++ P+ L E- W+ N++ o- K++ w+ O+ M !V PS+ PE Y+ PGP t+
!5 X- R- tv--- b++ DI++ D+ G+ e+ h---- r+++ y+ ------ END GEEK CODE
BLOCK ------ 
Technical Details
Message-ID: <Xns92338482819E2RepublicPicturesLtd@142.77.1.194>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!wn1feed!wn3feed!worldnet.att.net!207.35.177.252!nf3.bellglobal.com!news.uunet.ca!nnrp1.uunet.ca.POSTED!not-for-mail
References: <1024283082.192985@web.apex.net.au> <JScP8.111$Fv1.17660@newsread2.prod.itd.earthlink.net> <1024289793.45649@web.apex.net.au> <pan.2002.06.17.07.46.24.235390.777@databasix.com>

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-20 10:01:31 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!wn1feed!wn3feed!worldnet.att.net!207.35.177.252!nf3.bellglobal.com!news.uunet.ca!nnrp1.uunet.ca.POSTED!not-for-mail
Newsgroups: aus.computers.java,borland.public.jbuilder.java.language,comp.lang.java.programmer
Subject: Re: Multiple interfaces
From: Tris Orendorff <triso@remove-me.netrover.com>
References: <1024283082.192985@web.apex.net.au> <JScP8.111$Fv1.17660@newsread2.prod.itd.earthlink.net> <1024289793.45649@web.apex.net.au> <pan.2002.06.17.07.46.24.235390.777@databasix.com>
Organization: Torensoft Consulting
Message-ID: <Xns92338482819E2RepublicPicturesLtd@142.77.1.194>
User-Agent: Xnews/5.04.25
X-Face: IshsEs\2&-CRNbQ'E]S8OU{A_:p:*[<45&]7:[QnpNNZHm''7(M+Do^,?tfk!JK@i~x(3PR"?ZH=bE!coJ$9J1_Gs""|xs20v&1g%;QcA@HE?UJ&|9-(g&gkBPz{ZKVI^Yp8(c)T{I:BDk{EN,b"~/VV7OL46b64c3fp-TO7?)CvvaFSqW*73$s*]j99a-<ifgw.FkFrA_\!#/fzt%e0?Ic~8P~Vzp6'L|ZYmLM(sdmc:};7\?m8.0F^En~NT%>#zry-{86LtBDLi2TB=ArfN^.;4a'$[}/!1Pe2o8*],I(<x|A[:.wv`?Q9#=@iJm3
Lines: 38
Date: Thu, 20 Jun 2002 17:01:31 GMT
NNTP-Posting-Host: 64.10.157.4
X-Trace: nnrp1.uunet.ca 1024592491 64.10.157.4 (Thu, 20 Jun 2002 13:01:31 EDT)
NNTP-Posting-Date: Thu, 20 Jun 2002 13:01:31 EDT