Difference between new() & Construct()

Hello Pioneers,

I am new to Axapta, while going to classes & methods today, I came across new() & construct() methods. Kindly help me to understand that what is the difference between these 2 methods ?

Hi Pioneers,

Awaiting your valuable comments…

new() is a constructor, which is a special language construct and the only way how to create class instances.

construct() is a usual static method and it uses constructor(s) to create instances. The advantage is looser coupling - construct() allows you to return instances of subtypes and you can even change which instance is created without affecting any calling code.