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


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

Re: Need help with a program.

From "Leif Roar Moldskred" <leif.roar.moldskred@1:261/38.remove-fzq-this>
Subject Re: Need help with a program.
Message-ID <50327C3C.57164.calajapr@time.synchro.net> (permalink)
Newsgroups comp.lang.java.programmer
References <50327C3C.57163.calajapr@time.synchro.net>
Date 2012-08-20 18:58 +0000
Organization tds.net

Show all headers | View raw


  To: yanamandra
From: Leif Roar Moldskred <leifm@dimnakorr.com>

yanamandra <venu.yanamandra@gmail.com> wrote:
> Why does the function printall() print the base class (c1) member
> values? If that is reasonable, what is the method to print the
> extended class (cls) values using the base class function printall().

I take it school's back in session? The issue you're running into is called 
variable shadowing. Reading up on that should give you the answer to your 
problem.

--
Leif Roar Moldskred

--- BBBS/Li6 v4.10 Dada-1
 * Origin: Prism bbs (1:261/38)
--- Synchronet 3.16a-Win32 NewsLink 1.98
Time Warp of the Future BBS - telnet://time.synchro.net:24

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


Thread

Re: Need help with a program. "Leif Roar Moldskred" <leif.roar.moldskred@1:261/38.remove-fzq-this> - 2012-08-20 18:58 +0000
  Re: Need help with a program. "yanamandra" <yanamandra@1:261/38.remove-fzq-this> - 2012-08-20 18:58 +0000
    Re: Need help with a program. "Leif Roar Moldskred" <leif.roar.moldskred@1:261/38.remove-fzq-this> - 2012-08-20 18:58 +0000
      Re: Need help with a program. "yanamandra" <yanamandra@1:261/38.remove-fzq-this> - 2012-08-20 18:58 +0000
        Re: Need help with a program. "Leif Roar Moldskred" <leif.roar.moldskred@1:261/38.remove-fzq-this> - 2012-08-20 18:58 +0000
          Re: Need help with a program. "yanamandra" <yanamandra@1:261/38.remove-fzq-this> - 2012-08-20 18:58 +0000
        Re: Need help with a program. "Lew" <lew@1:261/38.remove-fzq-this> - 2012-08-20 18:58 +0000

csiph-web