| Author |
how a class can call methods using super
|
sham shalem
Greenhorn
Joined: Sep 21, 2008
Posts: 1
|
|
hi friends, if my application has 50 classes. All classes has method called display(), then how i can call the first class in 50 class using 'super'. [ September 26, 2008: Message edited by: sham shalem ]
|
 |
Rob Spoor
Sheriff
Joined: Oct 27, 2005
Posts: 19232
|
|
|
You can only go "up" one level. So if you have class A, class B extends A and class C extends B, then class C cannot "super" back to class A, only to B.
|
SCJP 1.4 - SCJP 6 - SCWCD 5
How To Ask Questions How To Answer Questions
|
 |
 |
|
|
subject: how a class can call methods using super
|
|
|