Path: csiph.com!usenet.pasdenom.info!gegeweb.org!de-l.enfer-du-nord.net!feeder1.enfer-du-nord.net!border1.nntp.ams2.giganews.com!border3.nntp.ams.giganews.com!Xl.tags.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!local2.nntp.ams.giganews.com!news.giganews.com.POSTED!not-for-mail NNTP-Posting-Date: Tue, 21 Aug 2012 03:43:37 -0500 From: Leif Roar Moldskred Subject: Re: Need help with a program. Newsgroups: comp.lang.java.programmer References: <82bcd41c-df92-4103-b674-718cf64a999b@x8g2000yqf.googlegroups.com> <8fc96fef-1eb1-41bb-a5d2-619ce71f5101@googlegroups.com> User-Agent: tin/2.0.0-20110823 ("Ardenistiel") (UNIX) (Linux/3.0.0-24-generic-pae (i686)) Message-ID: <2YCdnf385fmk167NnZ2dnUVZ8jKdnZ2d@giganews.com> Date: Tue, 21 Aug 2012 03:43:37 -0500 Lines: 22 X-Usenet-Provider: http://www.giganews.com X-Trace: sv3-YQ5EPDD8DZ9/XdvSF/XrOKCtYNKgedUGo4poiVdBJBnxb1tm8KrjqCjkXZtj2RuvoMHVydUtKmDoBQn!DSTG3TJdLdbh2qFY7es1XxjY6miEq+XtCq81QJRN0vaEXbmCFPxQiVOTMqynT/eLMdZH1Es8eCc= X-Complaints-To: abuse@giganews.com X-DMCA-Notifications: http://www.giganews.com/info/dmca.html X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 X-Original-Bytes: 2108 Xref: csiph.com comp.lang.java.programmer:18264 Lew wrote: > > Variables are not overridden, but methods can be. > > All six variables in your question are 'static', meaning they belong to the > class rather than the instance. The variables in the subclass "hide" (not > "shadow") the declarations from the superclass. Whoops. Yes, my bad -- I overlooked that the variables were static. > [SNIP] > The advice upthread to look up "shadowing", albeit the wrong concept, was not > so far wrong that it wouldn't have led to the right concept, had you not > summarily rejected it. I think you're being a little too harsh here. Didn't look to me like they "summarily rejected" anything; they just didn't understand how it applied. These concepts can be tricky to get one's head around when one first starts out. -- Leif Roar Moldskred