A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
how a class can call methods using super
Joined: Sep 21, 2008
Sep 26, 2008 12:45:00
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 ]
Joined: Oct 27, 2005
Sep 26, 2008 14:27:00
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 - OCEEJBD 6
How To Ask Questions
How To Answer Questions
Don't get me started about those stupid
subject: how a class can call methods using super
doubt in constructors?
hide vs override
userdefined Exception Class
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013