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 :
Finance | Project Operations, Human Resources, ...
Answered

Can we extends interface class and Implements Abstract class in D365FO

(0) ShareShare
ReportReport
Posted on by 632

Hi All,

Please check below points:

1. If i have one interface class and i want to extends interface class so can i extends?

2. If i have one abstract class and i want to implements Abstract class so can i implements?

Thanks & Regards,

Rahul.

I have the same question (0)
  • nmaenpaa Profile Picture
    101,160 Moderator on at

    Did you try it yourself? 

    1) Create a class that extends the interface class. Do you notice some issues / errors?

    2) Create a class that implements the abstract class. Do you notice some issues / errors?

  • Blue Wang Profile Picture
    on at
    [deleted]
  • Rahul.p Profile Picture
    632 on at

    Dear Mäenpää,

    Yes i try it myself and i am getting some error.

    But in standard i can see 'RunBaseBatch' class, 'RunBaseBatch' class is a Abstract class but this class is doing extends and implements both ?

  • nmaenpaa Profile Picture
    101,160 Moderator on at

    Would you mind sharing more details about "some error" (the exact error message would be nice) as well as your code? That would help us understand what might be wrong in your situation.

    Thanks!

  • Verified answer
    Martin Dráb Profile Picture
    237,801 Most Valuable Professional on at

    Interfaces and classes are technically two different things. Interfaces merely describes method that a class may have; they're not classes by themselves.

    You can extend (= inherit from) classes, but not interfaces. You can implement interfaces.

    Note that a class always has just a single parent class, but it can implement any number of interfaces.

  • Rahul.p Profile Picture
    632 on at

    Thanks Martin, for your  reply.

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 > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Martin Dráb Profile Picture

Martin Dráb 660 Most Valuable Professional

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 549 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 307 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans