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....
Joined: Dec 28, 2006
Please provide the source code for B.java
SCJP 1.5<br />SCWCD 1.4
Joined: Jan 05, 2006
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.