Luegisdorf
12/15/2005 8:48:00 AM
Hi Kory
Super calls the same method on the superclass of the current object. For
example you have a class A with method XX(). On the other side you have a
class B extends class A and have overwritten the method XX(). If you want
that the code in class A.xx() is executed additional to your new code in
B.xx(), you can just type super(may be some args) to do this?
In other words: If you want to replace the method in class B completly, you
should not use super(). But if you want to add some 'prologue' or 'epilogue'
code you can use super().
Hope this helps.
Best regards
Patrick
"Kory" wrote:
> Would someone please tell what Super() does?
> Thanks!