Show TOC

Code Example Before ExecutionLocate this document in the navigation structure

CLASS cl_car DEFINITION.
  PUBLIC SECTION.
    METHODS: drive
      IMPORTING 
        i_speed TYPE i.
  PRIVATE SECTION. 
    DATA: speed TYPE i.
ENDCLASS.
  
CLASS cl_car IMPLEMENTATION. 
  METHOD drive. 
    DATA(temp) = i_speed * '1.6'.
    DATA(engine) = 'on'.
    speed = speed + temp
  ENDMETHOD.
ENDCLASS.