Some interview question and answer for classes in MSD axapta


1) ACCESS Modifiers [Public, private, protected, static, display]

2) Is multiple inheritance possible in AX?? No It can be achived through interfaces.

Interfaces : It does not have method definition]

void calculate()

{}

class classz implements interface

void calculate()

{

a +b;

}

3) Is method overloading possible, or function overloading possible in AX ???

No - it does not allow to create another method with same name

4)Abstract and final key words

abstract - no need to create object, y?? when we know that we have to create object of child classes only, I will make the class as abstract and i use the concept of constructor controlled inheritance

construct(str _bankName)

{

swtich()

{}

}