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

Interface in D365FO

(0) ShareShare
ReportReport
Posted on by 734

Hi team,

I do research and interface class and what I understood…

An interface class must have method without implementing itself.

 

For example -

Base class -

public interface CustomerNotification
{
   void sendNotification(str message);
}

 

Derived class -

 

public class EmailNotification implements CustomerNotification
{
   public void sendNotification(str message)
   {
       info(strFmt("Email sent: %1", message));
   }
}

 

 

public class SmsNotification implements CustomerNotification
{
   public void sendNotification(str message)
   {
       info(strFmt("SMS sent: %1", message));
   }
}

 

Suppose the business may change the notification mechanism depending on the customer: for example 
Customer A → Email
Customer B → SMS

So, here we can use interface to acheive this.

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