Tuesday, 7 January 2014

Overriding vs. Overloading in ax 2012

Overloading is where there is more than one method with the same name, but the methods have different signatures (return type or parameter lists or both).

Overriding is where the super class's implementation of a method is altered by the subclass's implementation of the method, but the signatures of both methods are the same.

X++ supports overriding, but it does not support overloading.

No comments:

Post a Comment