Skip to content

ABAP Keyword Documentation →  ABAP - Short Reference 

INTERFACES - Short Reference

Reference

Other versions: 7.31 | 7.40 | 7.54

Syntax


INTERFACES intf 
  { { [ABSTRACT METHODS meth1 meth2 ...]
      [FINAL METHODS meth1 meth2 ...] }
    | [ALL METHODS {ABSTRACT|FINAL}] }
  [DATA VALUES attr1 = val1 attr2 = val2 ...].

Effect

Includes an interface in the public visibility section of a class or in another interface.

Additions

  • ABSTRACT METHODS meth1 meth2 ...
    Makes the specified instance methods meth1, meth2, ...abstract when implementing the interface in a class.
  • FINAL METHODS meth1 meth2 ...
    Makes the specified instance methods meth1, meth2, ... final when implementing the interface in a class.
  • ALL METHODS {ABSTRACT|FINAL}
    Makes all instance methods abstract or final when implementing the interface in a class.
  • DATA VALUES attr1 = val1 attr2 = val2 ...
    Assigns start values val1, val2, ... to instance attributes attr1, attr2, ... when implementing the interface in a class.