Extend AL interfaces
Enabled for | Public preview | General availability |
---|---|---|
Admins, makers, marketers, or analysts, automatically | Oct 1, 2024 | Oct 1, 2024 |
Business value
The support for extensible interfaces in programming languages offers significant business value by enabling creation of flexible and adaptable extensions that can evolve over time to meet changing business needs. They enable developers to add new functionalities without altering the core system, which can save time and resources while reducing the risk of introducing errors into the existing codebase. They are a key component in modern software engineering, providing the agility and flexibility needed to drive innovation and maintain a competitive edge in today's fast-paced business environment.
Feature details
You can now extend one or more existing interfaces when you declare an interface. When implementing an interface that extends other interfaces, the implementor must also implement all methods from all extended interfaces.
The feature also works with the testing and casting operators is
and as
, which are also new additions to the AL language in this release.
The syntax is shown in example below. Here, TheImplementor
can be used as both IFoo
, IBar
, and IFooBar
.
Tell us what you think
Help us improve Dynamics 365 Business Central by discussing ideas, providing suggestions, and giving feedback. Use the forum at https://aka.ms/bcideas.
See also
Extending interfaces in AL (docs)