Extensions of final methods
Views (4)
Let’s assume that D365 F&O comes with the following class and we want to extend its showInfo() method: class Demo { public static void main(Args _args) { new Demo().showInfo(); } public final void showInfo() { info("Base"); } } Let’s try the usual approach, Chain of Command: [ExtensionOf(classStr(Demo))] internal final class Demo_Extension { public ...
This was originally posted here.

Like
Report
*This post is locked for comments