Me

From Abap2Java

Jump to: navigation, search

ABAP

The keyword me is a reference to the current instance of the class. Me can be used inside any instance method to access instance attributes and other instance methods.

CLASS cl_my_class DEFINITION.
  PUBLIC SECTION:
    DATA mv_value TYPE F.
    METHODS init_a.
    METHODS constructor IMPORTING iv_value TYPE F.
ENDCLASS.
CLASS cl_my_class IMPLEMENTATION.
  METHOD constructor.
    me->mv_value = iv_value.
    me->init_a( ).
  ENDMETHOD.
  "...
ENDCLASS.

See also
Object Orientation, SUPER

Java

see this

Retrieved from "http://www.abap2java.com/Me"
Personal tools