web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Multiple inhertance

(0) ShareShare
ReportReport
Posted on by 210

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

I have the same question (0)
  • Suggested answer
    Martin Dráb Profile Picture
    237,959 Most Valuable Professional on at

    Simple answer - multiple inheritance is not supported. Use interfaces and/or composition instead.

  • Suggested answer
    enricoariel Profile Picture
    60 on at

    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

  • Martin Dráb Profile Picture
    237,959 Most Valuable Professional on at

    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.

  • enricoariel Profile Picture
    60 on at

    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.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans