Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #18242
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!news-out.readnews.com!transit4.readnews.com!news-out.news.tds.net!newsreading01.news.tds.net!53ab2750!not-for-mail |
|---|---|
| From | "yanamandra" <yanamandra@1:261/38.remove-fzq-this> |
| Subject | Re: Need help with a program. |
| Message-ID | <50327C3D.57167.calajapr@time.synchro.net> (permalink) |
| X-Comment-To | Leif Roar Moldskred |
| Newsgroups | comp.lang.java.programmer |
| In-Reply-To | <50327C3D.57166.calajapr@time.synchro.net> |
| References | <50327C3D.57166.calajapr@time.synchro.net> |
| X-FTN-AREA | COMP.LANG.JAVA.PROGRAMMER |
| X-FTN-MSGID | 1:261/38 e68a1124 |
| X-FTN-REPLY | 1:261/38 c65f87bd |
| Content-Type | text/plain; charset=IBM437 |
| Content-Transfer-Encoding | 8bit |
| X-Gateway | time.synchro.net [Synchronet 3.16a-Win32 NewsLink 1.98] |
| Lines | 24 |
| Date | Mon, 20 Aug 2012 18:58:40 GMT |
| NNTP-Posting-Host | 69.21.70.65 |
| X-Complaints-To | news@tds.net |
| X-Trace | newsreading01.news.tds.net 1345489120 69.21.70.65 (Mon, 20 Aug 2012 13:58:40 CDT) |
| NNTP-Posting-Date | Mon, 20 Aug 2012 13:58:40 CDT |
| Organization | tds.net |
| Xref | csiph.com comp.lang.java.programmer:18242 |
Show key headers only | View raw
To: Leif Roar Moldskred From: yanamandra <venu.yanamandra@gmail.com> On Monday, August 20, 2012 3:46:52 PM UTC+5:30, Leif Roar Moldskred wrote: > yanamandra 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 Yes, as per the output, it looks like that. But, where can I confirm that all three are different variables? Can I print addresses of the 3 variables, or is there any utility in java that can print the output similar to "nm"? Also, for the output I need, 40, 50 and 60, I will have to re-write the printall() function. Is that the only way? -Venu --- 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 | Next — Previous in thread | Next in thread | Find similar | Unroll 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