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

Latest Axapta / Dynamics AX FAQ Pages

Get our Free Newletter

Don't you have the time to be online here at DUG every day? So how do you follow what is going on in the Dynamics industry and community?
If you subscribe to the DUG Newsletter then you can relax! We will make sure that you don't miss the big news!

Check out our
Newsletter Subscription Center
page a complete list of our different newsletters.

Solution (Not Verified) This post has 0 verified solutions | 1 Reply | 2 Followers

26 Posts
375 Points
Joined: 2011-11-23
Last Online:
2013-12-2 11:57
Location: Bangalore
Karn Bajpey posted on 2012-6-30 8:55

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

All Replies

28 Posts
613 Points
Joined: 2010-7-2
Last Online:
2013-5-22 14:15
Location: Vilnius
Suggested by ven Benz


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.


Page 1 of 1 (2 items) | Get this RSS feed | Bookmark and Share