function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
SARI4SARI4 

How to use SFDC microservices to replace the interfaces for Java application

ANy one having any working example for the SFDC microservices for interfaces
Raj VakatiRaj Vakati
Refer this link 

You need to create apex interfaces and abstract classes and call them from the main class 
https://www.tutorialspoint.com/apex/apex_interfaces.htm
// Interface
public interface DiscountProcessor {
   Double percentageDiscountTobeApplied(); // method signature only
}

// Premium Customer Class
public class PremiumCustomer implements DiscountProcessor {
   
   //Method Call
   public Double percentageDiscountTobeApplied () {
      
      // For Premium customer, discount should be 30%
      return 0.30;
   }
}

// Normal Customer Class
public class NormalCustomer implements DiscountProcessor {
   
   // Method Call
   public Double percentageDiscountTobeApplied () {
      
      // For Premium customer, discount should be 10%
      return 0.10;
   }
}