| Author |
Overloading-issue- Help me out guys - Imm.
|
deepu Bhalotia
Ranch Hand
Joined: Apr 19, 2005
Posts: 39
|
|
Added tags. Methinks there should be a question here... Or could this be the answer? [ April 29, 2005: Message edited by: Barry Gaunt ] [ April 29, 2005: Message edited by: Barry Gaunt ]
|
 |
Srinivasa Raghavan
Ranch Hand
Joined: Sep 28, 2004
Posts: 1228
|
|
So whats you doubt ? PS: your name doesn't match the naming policy change it before a bartender catches you.
|
Thanks & regards, Srini
MCP, SCJP-1.4, NCFM (Financial Markets), Oracle 9i - SQL ( 1Z0-007 ), ITIL Certified
|
 |
Barry Gaunt
Ranch Hand
Joined: Aug 03, 2002
Posts: 7729
|
|
|
I have already requested a name change... But it falls on blind eyes I think. :roll:
|
Ask a Meaningful Question and HowToAskQuestionsOnJavaRanch
Getting someone to think and try something out is much more useful than just telling them the answer.
|
 |
Raghu Shree
Ranch Hand
Joined: Mar 18, 2005
Posts: 143
|
|
|
Here method overloading is based on reference type. So Animal version of method is executed, because obj is animal type reference.
|
Raghu J<br />SCJP 1.4<br /> <br />The Wind and waters are always<br />on the side of the ablest navigators.<br /><a href="http://groups.yahoo.com/group/scjp_share" target="_blank" rel="nofollow">SCJP Group</a><br /><a href="http://groups.yahoo.com/group/JavaBeat_SCWCD" target="_blank" rel="nofollow">SCWCD Group</a>
|
 |
 |
|
|
subject: Overloading-issue- Help me out guys - Imm.
|
|
|