Article View: borland.public.jbuilder.java.language
Article #8736Re: class reference from static context
From: Torsten Welches
Date: Thu, 01 Mar 2001 08:32
Date: Thu, 01 Mar 2001 08:32
12 lines
1483 bytes
1483 bytes
"Rick Ingham" <rdingham@home.com> wrote: >But will that work in subclasses that inherit the method and >properly reflect the subclass' class name? There is no polymorphism magic involved with static methods. They are always called on the declaration type rather than the runtime type (unlike instance methods). That means you had to "override" the method in each subclass anyway. Or do I just miss what you are asking? Torsten
Technical Details
Message-ID:
<3a9e090b$1_2@dnews>Path:
arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!newsswitch.lcs.mit.edu!newsxfer.visi.net!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!bornews.borland.com!dnews!207.105.83.65References:
<97knfi$fdt3@bornews.inprise.com> <3a9def0f$1_2@dnews> <97kv03$2m31@bornews.inprise.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,f19fee463664b3b0 X-Google-Attributes: gidf74b3,public X-Google-ArrivalTime: 2001-03-01 00:44:05 PST From: "Torsten Welches" <torsten.welches@who.cares.netcologne.de> Sender: "Torsten Welches" <torsten.welches@who.cares.netcologne.de> Reply-To: "Torsten Welches" <torsten.welches@who.cares.netcologne.de> Subject: Re: class reference from static context Newsgroups: borland.public.jbuilder.java.language X-User-Info: 193.158.55.74 193.158.55.74 References: <97knfi$fdt3@bornews.inprise.com> <3a9def0f$1_2@dnews> <97kv03$2m31@bornews.inprise.com> NNTP-Posting-Host: 207.105.83.65 Message-ID: <3a9e090b$1_2@dnews> Date: 1 Mar 2001 00:32:11 -0800 X-Trace: 1 Mar 2001 00:32:11 -0800, 207.105.83.65 Lines: 12 Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-03!supernews.com!newsswitch.lcs.mit.edu!newsxfer.visi.net!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!bornews.borland.com!dnews!207.105.83.65