Notifications
Announcements
No record found.
HI all
How to achive multiple inheritance in ax give me one example on it
Thanks in Advance
Farook
*This post is locked for comments
Simple answer - multiple inheritance is not supported. Use interfaces and/or composition instead.
I know is an old post, but if anyone reading still need an example here is one I made:
https://enricoariel.blogspot.com/2019/09/multiple-inheritance-in-dynamics-ax-x.html
I would avoid statements like "we have achieved multiple inheritance", because that's not true. The blog post presents something that can be used instead of multiple inheritance and it indeed uses a composition (class1 and class2 are fields, not parent classes) and interfaces.
There is only a single case of inheritance - EF_MultipleInheritaceClass1And2 inherits from EF_MultipleInheritaceBaseClass1And2 (and that clearly a single inheritance - the class has just a single direct parent).
I'm not saying that the solution is wrong in any way - just that it's not multiple inheritance.
thank you Martin, you are right as always. I rephrased to "simulate" multiple Inheritance which is more precisely what we do.
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
As AI tools become more common, we’re introducing a Responsible AI Use…
We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
Martin Dráb 4 Most Valuable Professional
Priya_K 4
MyDynamicsNAV 2