O'Reilly logo

Learning MS Dynamics AX 2012 Programming by Erlend Dalen, Mohammed Rasheed

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 a class. 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; instead, you create new nodes under the class in 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 have direct access to these variables.

During development, you write classes and the classes are instantiated as objects at ...

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