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

Solution (Not Verified) This post has 0 verified solutions | 3,749 Views | 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 rated by 0 users

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

  • Filed under:
  • | Post Points: 11

All Replies

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


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.


  • | Post Points: 5
Page 1 of 1 (2 items) | Get this RSS feed