Hi Experts,
Just out of curiousity, Will this be a right way of stopping the execution of standard method in COC? It gives no compilation error and works well.
class StandardClass
{
date standardMethod()
{
//some logic
ret date;
}
}
[Extensionof(classstr(StandardClass))]
final class StandardClass_Extension
{
date standardMethod()
{
TransDate dateTest;
void skipOriginal()
{
dateTest = next standardMethod()
}
//Never call skipOriginal method
///Now write your custom code or copy paste standard method with your customzation.
}
}