What is the difference between new() and construct() methods in AX 2009?

Hi all,

As I am new to AX I just want to know what’s the difference between new() and contruct() methods in AX as I have encountered both these methods in a class?

Also please explain me with scenario the advantages and disadvantages of both these methods.

Thanks in advance


Method new() actually constructs a class and finalize() destructs.

Method construct() is a best practice to use when creating an instance. In this method you code how to construct a specific class.