O'Reilly logo

Microsoft Dynamics AX 2009 Programming: Getting Started by Erlend Dalen

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Classes and methods

One of the core components of an object oriented programming language is classes. The classes are blueprints for objects, and are used to define what an object of a certain type can do and what kind of attributes it has.

Classes in AX are similar to classes in C#, but you don't specify the methods of a class within its curly brackets. Rather, you create new nodes under the class in the AOT for each method.

The class declaration is used to hold variables that are global in the class. These variables are always protected as opposed to private and public. This means that objects of that class or objects of a subclass has direct access to these variables.

While developing you write classes. At runtime the classes are instantiated ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required