[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Kory

12/14/2005 9:57:00 PM

Would someone please tell what Super() does?
Thanks!
2 Answers

rheu

12/15/2005 8:10:00 AM

0

See discussion 'super()' on 7th dec 2005 in discussion group 'Microsoft
Business Solutions Axapta'.
--
Regards,
Rob


"Kory" wrote:

> Would someone please tell what Super() does?
> Thanks!

Luegisdorf

12/15/2005 8:48:00 AM

0

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!