Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.programmer > #18171

Re: Need help with a program.

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!eternal-september.org!feeder.eternal-september.org!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 Mon, 20 Aug 2012 05:16:52 -0500
From Leif Roar Moldskred <leifm@dimnakorr.com>
Subject Re: Need help with a program.
Newsgroups comp.lang.java.programmer
References <82bcd41c-df92-4103-b674-718cf64a999b@x8g2000yqf.googlegroups.com> <Rp-dnfT58e_Vm6_NnZ2dnUVZ8kydnZ2d@giganews.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 <ALednd5HHvkJk6_NnZ2dnUVZ8iadnZ2d@giganews.com> (permalink)
Date Mon, 20 Aug 2012 05:16:52 -0500
Lines 13
X-Usenet-Provider http://www.giganews.com
X-Trace sv3-sfa4VqlNB3VvCwgLXnCS9oKDbcuGv6bv0iitq7k/X13Vs9u8o7K+LdBwI1IPqVvHagxtAn54nunGAxc!3ALXKhHinKXIi2nmGIY78CTP0mpYFUgiaUaPuryNxLrtd7UNKbRIh0TWpkncWTtUxapthbURiSc=
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 1639
Xref csiph.com comp.lang.java.programmer:18171

Show key headers only | View raw


yanamandra <venu.yanamandra@gmail.com> wrote:
> 
> I am talking about inherited variables. there is i1, i2 and i3 in
>  the super class with a method printall. there are the same 3
>  variables in the derived class but there is no printall method in
>  the sub class. 

No, those are three _different_ variables which happen to have the
same names as variables in the base class. You have _six_ variables in
play here, not three. That's what's causing you problems.

-- 
Leif Roar Moldskred

Back to comp.lang.java.programmer | Previous | NextPrevious in thread | Next in thread | Find similar | Unroll thread


Thread

Need help with a program. yanamandra <venu.yanamandra@gmail.com> - 2012-08-20 02:24 -0700
  Re: Need help with a program. Leif Roar Moldskred <leifm@dimnakorr.com> - 2012-08-20 04:41 -0500
    Re: Need help with a program. yanamandra <venu.yanamandra@gmail.com> - 2012-08-20 02:57 -0700
      Re: Need help with a program. Leif Roar Moldskred <leifm@dimnakorr.com> - 2012-08-20 05:16 -0500
        Re: Need help with a program. yanamandra <venu.yanamandra@gmail.com> - 2012-08-20 03:39 -0700
          Re: Need help with a program. Leif Roar Moldskred <leifm@dimnakorr.com> - 2012-08-20 06:46 -0500
            Re: Need help with a program. yanamandra <venu.yanamandra@gmail.com> - 2012-08-20 04:58 -0700
          Re: Need help with a program. Lew <noone@lewscanon.com> - 2012-08-20 07:31 -0700
            Re: Need help with a program. Leif Roar Moldskred <leifm@dimnakorr.com> - 2012-08-21 03:43 -0500
  Re: Need help with a program. Roedy Green <see_website@mindprod.com.invalid> - 2012-08-20 17:22 -0700

csiph-web