community postAL Developmentcommunity - not Microsoftreviewed - checked by Opus

Business Central 2026 release wave 2 (BC29): Evolve AL interfaces with default implementations (Default interface method implementations)

Default interface method implementations in BC29 allow interfaces to include method bodies so existing implementors can omit them and inherit default behavior or override them. This feature, requiring runtime 18.0 or later, lets extension publishers add behavior without forcing immediate changes to implementing extensions, with RequiredPending and AppSourceCop rules supporting a managed transition path.

post Dynamics 365 Lab

Yun Zhu · 2026-10-26 · 908 words · about 4 min

"Default methods are dispatched through the interface variable, not inherited by the implementing codeunit's public API."

Key points

  • Interfaces can now have method bodies serving as default implementations that codeunits can inherit or override
  • The RequiredPending attribute marks default methods as becoming required in future versions, with compiler warnings to guide developers
  • AppSourceCop rules AS0148 and AS0149 enforce safe transitions by flagging removed defaults without prior RequiredPending marking and runtime identifier changes
  • Default methods dispatch through interface variables only; calling them on codeunit variables directly will fail
  • Feature requires runtime version 18.0 or later, introduced in BC29 (2026 wave 2)

Quotes

  • “Default methods are dispatched through the interface variable, not inherited by the implementing codeunit’s public API.” (This clarifies an important implementation detail that developers must understand to avoid runtime errors when calling default methods)
  • “Extension publishers can add behavior to an interface without immediately requiring every implementing extension to change.” (This is the business value that enables managed API upgrades and reduces disruption to dependent developers in the extension ecosystem)

AL objects mentioned

As named in the post. A name that matches one object page by exact type and name links to it; the others stay as named.

  • interface “ZYTestInterface”
  • interface “IPaymentMethod”
  • interface “IAddressProvider”
  • codeunit “ImplementZYTest”
  • codeunit “CashPayment”

Not found in BC28-30: interface “ZYTestInterface”, interface “IPaymentMethod”, interface “IAddressProvider”, codeunit “ImplementZYTest”, codeunit “CashPayment”.

Heads up

  • gotcha: “Default methods are dispatched through the interface variable, not inherited by the implementing codeunit’s public API.” (about version BC29)
  • warning: “This feature requires runtime version 18.0 or later.” (about version BC29)

Context

  • Features: Default interface method implementations, RequiredPending attribute, AppSourceCop rule AS0148, AppSourceCop rule AS0149, Interface method body support
  • Versions: BC29, 2026 release wave 2, runtime 18.0

Source: Dynamics 365 Lab - Yun Zhu, community blog. Summary, key points and quotes are derived (CONTENT-NOTICE.md); read the original for the full text.