Article View: comp.lang.java.programmer
Article #177Re: calling method of super class of super class
From: Paul Murray
Date: Fri, 04 May 2001 21:01
Date: Fri, 04 May 2001 21:01
21 lines
2140 bytes
2140 bytes
"Carsten Friedrich" <Carsten.Friedrich@gmx.de> wrote in message news:3aee0699.231503@news.usyd.edu.au... > Hi, > > is it possible to call a method of the super class of the super class? > E.g. (Pseudo java): No. A class can hide anything it chooses - that's the whole idea of encapulation. If I write a class X, you can't "back door" the class by extending it and then directly calling it's superclass methods. If that were possible, then I would not be able to prove that X always has a valid state. Java is designed so that this sort of provability is possible. If X does not do what you want, then you need to speak to the writer of X, or write your own. -------------------------------------------------------------- Sometimes he answers "Yes", sometimes "No", sometimes "Wait", and sometimes he gives you something different. You get the same set of responses praying to a brick. http://www.users.bigpond.com/pmurray ICQ: 26066755
Technical Details
Message-ID:
<pL0J6.19527$482.94173@newsfeeds.bigpond.com>Path:
arc1-ca.pugleaf.net!newsfeed.google.com!newsfeed.stanford.edu!canoe.uoregon.edu!logbridge.uoregon.edu!netnews.com!newsfeed.nyc.globix.net!news.stealth.net!intgwpad.nntp.telstra.net!newsfeeds.bigpond.com!not-for-mailReferences:
<3aee0699.231503@news.usyd.edu.au>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10d6db,edae50d7b645c6ea X-Google-Attributes: gid10d6db,public X-Google-Thread: 10a146,edae50d7b645c6ea X-Google-Attributes: gid10a146,public X-Google-ArrivalTime: 2001-05-05 17:32:22 PST Path: arc1-ca.pugleaf.net!newsfeed.google.com!newsfeed.stanford.edu!canoe.uoregon.edu!logbridge.uoregon.edu!netnews.com!newsfeed.nyc.globix.net!news.stealth.net!intgwpad.nntp.telstra.net!newsfeeds.bigpond.com!not-for-mail From: "Paul Murray" <pmurray@nospam.bigpond.com> Newsgroups: comp.lang.java.programmer,aus.computers.java References: <3aee0699.231503@news.usyd.edu.au> Subject: Re: calling method of super class of super class Lines: 25 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.3018.1300 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.3018.1300 Message-ID: <pL0J6.19527$482.94173@newsfeeds.bigpond.com> Date: Sat, 5 May 2001 07:01:30 +1000 NNTP-Posting-Host: 203.54.251.192 X-Trace: newsfeeds.bigpond.com 989108309 203.54.251.192 (Sun, 06 May 2001 10:18:29 EST) NNTP-Posting-Date: Sun, 06 May 2001 10:18:29 EST Organization: Telstra BigPond Internet Services (http://www.bigpond.com)