🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Is "return super;" a valid statement

#8515
From: Mark Richter
Date: Sat, 17 Mar 2001 21:00
22 lines
1387 bytes
"Ralph Quapp" <-> wrote in message news:3ab26402$1_1@dnews...
>  public class B extends A
>  {
>   public String b = "B";
>
>   public A doSomething()
>   {
>    return super;                    <---- error
>   }
>  }

Ralph,

  'super' suggests an instance, the ancestor instance.  You have declared
your method to return a class.

Try:

  return super();

It should then call A.doSomething() and return its result.  I've not tested
this, but that *looks* like what is happening...
Technical Details
Message-ID: <3ab3d020$1_1@dnews>
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!news-out.usenetserver.com!news-out-sjo.usenetserver.com!feed2.onemain.com!feed1.onemain.com!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!dnews!64.31.239.58
References: <3ab26402$1_1@dnews>

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 13:02:03 PST
From: "Mark Richter" <mrichter@emceesoftware.com>
Newsgroups: borland.public.jbuilder.java.language
References: <3ab26402$1_1@dnews>
Subject: Re: Is "return super;" a valid statement
Date: Sat, 17 Mar 2001 15:00:15 -0600
Lines: 24
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2919.6700
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700
NNTP-Posting-Host: 64.31.239.58
Message-ID: <3ab3d020$1_1@dnews>
X-Trace: 17 Mar 2001 12:59:12 -0800, 64.31.239.58
Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!news-out.usenetserver.com!news-out-sjo.usenetserver.com!feed2.onemain.com!feed1.onemain.com!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!dnews!64.31.239.58