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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Unanswered

Abstract method and class in D365FO

(0) ShareShare
ReportReport
Posted on by 734

Hi team,

I have trying to understand the concept of abstract class and method to use in D365FO. So, what I understood…

An abstract class is used when we want to define a base class that should not be instantiated directly. 

It is typically used when we like to share common functionality in multiple derived classes.

For example -

Suppose we have different types of customer notifications. The common logic we can be placed in an abstract base class, while each derived class implements its own notification method respectively.

Abstract base class -

public abstract class CustomerNotification
{

   public abstract void sendNotification();
}

 

Derived class-

public class EmailCustomerNotification extends CustomerNotification
{
   public void sendNotification()
   {
       info("Customer notification sent through Email.");
   }
}

Derived class -

public class SmsCustomerNotification extends CustomerNotification
{
   public void sendNotification()
   {
       info("Customer notification sent through SMS.");
   }
}

Am I correct?

Pls advise, thanks 

 

 

 

 

 

Categories:
I have the same question (0)

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 288 Super User 2026 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 276 Most Valuable Professional

#3
Anton Venter Profile Picture

Anton Venter 225 Super User 2026 Season 2

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans