ABAP - Keyword Documentation →  ABAP - ABAP Release News →  News for ABAP Release 7.40 and its SPs →  News for ABAP Release 7.40, SP08 → 
Mail Feedback

ABAP Objects in ABAP Release 7.40, SP08

Modification

Optional Interface Methods

The new addition DEFAULT of the statements METHODS and CLASS-METHODS can be used to make general methods, functional methods, plus event handlers of interfaces optional. An optional interface method does not need to be implemented explicitly in a class when an interface is implemented. Instead, a default behavior is specified for calls of non-implemented methods in the definition. DEFAULT IGNORE calls an empty method and DEFAULT FAIL raises an exception.