


The interface object does not contain any code, only signatures, and cannot be called from the code but must be implemented by other objects. Use the new interface object to declare an interface name with its methods and apply the implementation keyword along with the interface names on the objects that implement the interface methods. This allows you to write code that reduces dependence on implementation details, facilitates code reuse, and supports a polymorphic way of calling object methods, which can be used again to replace business logic. Enjoy the reading.Īn interface is used when you want to decide which features should be available for an object, while allowing actual implementations to differ as long as they conform to the defined interface. Since I have never talked about it, I speak of it now, I don’t report particular examples as there are already several published.īelow are some links to very well made examples, useful for understanding how to best use them. A new object type is available in Business Central 2020 Wave1: “ interface” object
