Extensions of final methods

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 …

Continue reading ‘Extensions of final methods’ »