Business Central v29: Using AL Interfaces with Default Method Support
Business Central 29.0 introduces default interface methods in AL, allowing interfaces to provide complete procedure implementations that codeunits may override while maintaining backward compatibility. This feature reduces duplicate code and lets developers evolve interfaces without breaking existing implementations.

post Aardvark Labs
"A default method lets the interface provide a full implementation that codeunits may override if needed."
Key points
- Default interface methods let an interface carry a full procedure body that implementing codeunits either inherit or override
- Abstract members hold only a signature and must be implemented; default members run automatically unless overridden
- A default method can only be called through an interface variable, not directly on a codeunit that does not define it
- To add a mandatory procedure safely, first add it with a default body, then mark it RequiredPending to warn implementors, then remove the body
- The author notes that interfaces in general help AI code generation by giving a strict contract to follow
Quotes
- “A default method lets the interface provide a full implementation that codeunits may override if needed.” (This is the core capability that solves the problem of adding functionality to interfaces without breaking existing implementations)
- “To access default implementations, you must call the interface variable not the code unit directly.” (Understanding this distinction is critical for developers to correctly implement the feature; calling the wrong reference type will cause compilation errors)
- “Default Interface Methods make interfaces far more flexible and reduce the risk of breaking existing implementations when requirements evolve.” (This summarizes the main business value of the feature for maintaining stable systems while evolving architecture)
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 “ARD_DinnerGuest”
- codeunit “ARD_AmericanGuest”
- codeunit “ARD_CanadianGuest”
- page “ARD_DinnerGuestExample”
- interface “ARD_BillPayment”
Not found in BC28-30: interface “ARD_DinnerGuest”, codeunit “ARD_AmericanGuest”, codeunit “ARD_CanadianGuest”, page “ARD_DinnerGuestExample”, interface “ARD_BillPayment”.
Heads up
- gotcha: “Note that this code unit does not contain the procedure CanDrinkAlcohol. This is very important and we will discuss why later.” (about codeunit ARD_AmericanGuest, version 29)
- gotcha: “To access default implementations, you must call the interface variable not the code unit directly.” (about version 29)
- gotcha: “In this example, AmericanGuest.CanDrinkAlcohol() is not valid. The code unit ARD_AmericanGuest doesn’t have a procedure named CanDrinkAlcohol.” (about codeunit ARD_AmericanGuest, version 29)
- breaking: “If the implementors have not implemented a GetTipAmount at this point they will receive an error.” (about interface ARD_BillPayment, version 30)
Context
- Features: Default Interface Methods, Abstract Methods, Interface Implementation, RequiredPending Attribute, Method Override, AL Code Generation, Backward Compatibility
- Versions: 29.0, 2026 Wave 2
Source: Aardvark Labs, community blog. Summary, key points and quotes are derived (CONTENT-NOTICE.md); read the original for the full text.