🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #8518

Re: Is "return super;" a valid statement

#8518
From: John McGrath TeamB
Date: Sun, 18 Mar 2001 03:58
17 lines
1311 bytes
One further note:  If you are trying to call the superclass version
of your doSomething() method, the way to do that would be:

    return super.doSomething();

But again, as in the previous example, this would have the same effect 
as removing the declaration of doSomething() from the subclass 
altogether, since without it the superclass method would be called.

-- 
Regards,

John McGrath [TeamB]

---------------------------------------------------
Before sending me e-mail, please read:
    http://www.JPMcGrath.net/newsgroups/e-mail.html
Technical Details
Message-ID: <MPG.151df2148cd2b2f398a08a@forums.borland.com>
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!dnews!209.92.40.60
References: <3ab26402$1_1@dnews> <MPG.151cdabe37c2b74f98a084@forums.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,a2b6df84216d25a2
X-Google-Attributes: gidf74b3,public
X-Google-ArrivalTime: 2001-03-17 20:42:07 PST
From: John McGrath  [TeamB] <ng-b@JPMcGrath.net>
Newsgroups: borland.public.jbuilder.java.language
Subject: Re: Is "return super;" a valid statement
Date: Sat, 17 Mar 2001 22:58:24 -0500
Message-ID: <MPG.151df2148cd2b2f398a08a@forums.borland.com>
References: <3ab26402$1_1@dnews> <MPG.151cdabe37c2b74f98a084@forums.borland.com>
X-Newsreader: MicroPlanet Gravity v2.30
NNTP-Posting-Host: 209.92.40.60
X-Trace: 17 Mar 2001 19:54:15 -0800, 209.92.40.60
Lines: 17
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!dnews!209.92.40.60