Created
January 29, 2012 20:57
-
-
Save furlan/1700605 to your computer and use it in GitHub Desktop.
ZP_HELLO_OO_2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
*&---------------------------------------------------------------------* | |
*& Report ZP_HELLO_OO_2 | |
*& | |
*&---------------------------------------------------------------------* | |
*& | |
*& | |
*&---------------------------------------------------------------------* | |
REPORT zp_hello_oo_2 NO STANDARD PAGE HEADING. | |
*----------------------------------------------------------------------* | |
* CLASS lcl_hello DEFINITION | |
*----------------------------------------------------------------------* | |
* | |
*----------------------------------------------------------------------* | |
CLASS lcl_hello DEFINITION. | |
PUBLIC SECTION. | |
METHODS: display_message | |
IMPORTING | |
i_name TYPE char30. | |
ENDCLASS. "lcl_hello DEFINITION | |
*----------------------------------------------------------------------* | |
* CLASS lcl_hello IMPLEMENTATION | |
*----------------------------------------------------------------------* | |
* | |
*----------------------------------------------------------------------* | |
CLASS lcl_hello IMPLEMENTATION. | |
METHOD display_message. | |
WRITE: / 'Hello: ', i_name. | |
ENDMETHOD. "display_message | |
ENDCLASS. "lcl_hello IMPLEMENTATION | |
DATA: r_hello TYPE REF TO lcl_hello. | |
PARAMETERS: p_name TYPE char30 DEFAULT 'World OO!!'. | |
START-OF-SELECTION. | |
CREATE OBJECT r_hello. | |
r_hello->display_message( p_name ). |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment