| Author |
method invocation
|
Shiva Mohan
Ranch Hand
Joined: Jan 05, 2006
Posts: 465
|
|
in line1,Photos.test(Photos) gets accessed.actaully Photos class having two methods namely test(A a) and test(B b) . i thought Photos.test(Photos) call only invoke test(B b).Photos.test(Photos) invoking test(A a) which makes no sense Since A is the superclass.But i got the result "B - public void test(A ) ".How?Any help....
|
 |
Priya Viswam
Ranch Hand
Joined: Dec 28, 2006
Posts: 81
|
|
|
Please provide the source code for B.java
|
SCJP 1.5<br />SCWCD 1.4
|
 |
Shiva Mohan
Ranch Hand
Joined: Jan 05, 2006
Posts: 465
|
|
Hi Priya, You really helped me to understand where i was going wrong.Actaully B class had to change to Photos.After i changed ,everything is working properly as i thought. Thanks for the help.
|
 |
 |
|
|
subject: method invocation
|
|
|