Article View: comp.lang.java.programmer
Article #176Re: calling method of super class of super class
From: Mats Olsson
Date: Wed, 02 May 2001 09:15
Date: Wed, 02 May 2001 09:15
22 lines
1820 bytes
1820 bytes
In article <3aef81b7.5615427@news.usyd.edu.au>,
Carsten Friedrich <Carsten.Friedrich@gmx.de> wrote:
>
>>Carsten.Friedrich@gmx.de (Carsten Friedrich) writes:
>>
>>> is it possible to call a method of the super class of the super
>>> class?
>>
>>No. Basically, a class knows its super class, but not that class'
>>superclass. If you end up needing to call a method two levels down you
>>need to reconsider your design.
>>
>
>Thanks for the answer. Re-designing is not so easy in this case.
>Basically I extend a 3rd party class with a clever hash-function.
>Unfortunately my sub-class has the effect that the hash-funtion
>degenerates. So I'd like to use the hash-function as it is implemented
>in Object.
System.identityHashCode()
/Mats
Technical Details
Message-ID:
<9coj8c$8om$1@nyheter.chalmers.se>Path:
arc1-ca.pugleaf.net!newsfeed.google.com!newsfeed.stanford.edu!skynet.be!newsfeed1.uni2.dk!newsfeeds.net.uni-c.dk!newsfeed.sunet.se!news01.sunet.se!news.chalmers.se!dtek.chalmers.se!matsoReferences:
<3aee0699.231503@news.usyd.edu.au> <wk1yq92zv2.fsf@mail.multinett.no> <3aef81b7.5615427@news.usyd.edu.au>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10a146,edae50d7b645c6ea X-Google-Attributes: gid10a146,public X-Google-Thread: 10d6db,edae50d7b645c6ea X-Google-Attributes: gid10d6db,public X-Google-ArrivalTime: 2001-05-02 02:16:05 PST Path: arc1-ca.pugleaf.net!newsfeed.google.com!newsfeed.stanford.edu!skynet.be!newsfeed1.uni2.dk!newsfeeds.net.uni-c.dk!newsfeed.sunet.se!news01.sunet.se!news.chalmers.se!dtek.chalmers.se!matso From: matso@dtek.chalmers.se (Mats Olsson) Newsgroups: comp.lang.java.programmer,aus.computers.java Subject: Re: calling method of super class of super class Date: 2 May 2001 09:15:56 GMT Organization: Chalmers University of Technology Lines: 22 Message-ID: <9coj8c$8om$1@nyheter.chalmers.se> References: <3aee0699.231503@news.usyd.edu.au> <wk1yq92zv2.fsf@mail.multinett.no> <3aef81b7.5615427@news.usyd.edu.au> NNTP-Posting-Host: licia.dtek.chalmers.se X-Trace: nyheter.chalmers.se 988794956 8982 129.16.30.88 (2 May 2001 09:15:56 GMT) X-Complaints-To: abuse@chalmers.se NNTP-Posting-Date: 2 May 2001 09:15:56 GMT