If you are talking about the classic oop overload (writting several functions/methods with the same name and different parameters), it is not possible in axapta.
I gues you have to differ between overwrite in the classical oop and overwriting on a different layer. In Axapta, you can do the following:

Change the content of a method on a different layer (not recommed) or subclass a class and provide your own implementation in your overwritten method. In this case you can call the base implementation by calling "super". You also have to care, that you must instanciate an object of your newly implemented class in this case.

Here is the text from the developers guide:

override vs. overload


Overload
To provide more than one method with the same name but with different signatures to distinguish them.

Override
To replace the superclass's implementation of a method with one of your own. The signature must be identical.

Note
Only non-static methods may be overridden.

regards

Andreas Gahr

-----Urspr�ngliche Nachricht-----
Von: dgaethofs [mailto:[EMAIL PROTECTED]
Gesendet: Montag, 26. Juli 2004 15:24
An: [EMAIL PROTECTED]
Betreff: [development-axapta] Override versus Overload


Dear all,

I have a question about the difference between override and
overload. In the developers guide one talks about the two as if they
are the same. But they are not.

Can we overload methods in Axapta ?
What exactly is meant with overloading in Axapta?

Regards,
Danny





Yahoo! Groups Links







Yahoo! Groups Sponsor
ADVERTISEMENT
click here


Yahoo! Groups Links

Reply via email to