how to check a class has been declared private or public in ax?

I want to create an instance of a class in a job when ever i try to do so i get an error like class is abstract or class is protected.

my question is that we have already set of classes in ax 2009 i just want to know which class is public or protected , i understand regarding abstract like abstract classes they gives extend to child classes, any help…

You can find useful methods for that in the DictClass/SysDictClass classes. For example:

SysDictClass dc = new SysDictClass(className2Id("RunBase"));

if (dc.isAbstract())
    info("Is abstract");

if (dc.allowMakeObject())
    info("Can be created with parameterless constructor");

Thanks a ton… Martin, it works…