-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
33 additions
and
6 deletions.
There are no files selected for viewing
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
22 changes: 20 additions & 2 deletions
22
src/cl_demo_output.clas.abap → src/demo/cl_demo_output.clas.abap
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,46 @@ | ||
CLASS cl_demo_output DEFINITION PUBLIC. | ||
PUBLIC SECTION. | ||
INTERFACES if_demo_output. | ||
|
||
CLASS-METHODS write | ||
IMPORTING | ||
data TYPE any | ||
name TYPE string OPTIONAL. | ||
|
||
CLASS-METHODS clear. | ||
|
||
CLASS-METHODS new | ||
RETURNING | ||
VALUE(output) TYPE REF TO if_demo_output. | ||
|
||
CLASS-METHODS display | ||
IMPORTING | ||
data TYPE any OPTIONAL | ||
name TYPE string OPTIONAL PREFERRED PARAMETER data. | ||
data TYPE any OPTIONAL | ||
name TYPE string OPTIONAL PREFERRED PARAMETER data. | ||
ENDCLASS. | ||
|
||
CLASS cl_demo_output IMPLEMENTATION. | ||
METHOD write. | ||
ASSERT 1 = 'not supported'. | ||
ENDMETHOD. | ||
|
||
METHOD if_demo_output~write. | ||
ASSERT 1 = 'not supported'. | ||
ENDMETHOD. | ||
|
||
METHOD new. | ||
ASSERT 1 = 'not supported'. | ||
ENDMETHOD. | ||
|
||
METHOD clear. | ||
ASSERT 1 = 'not supported'. | ||
ENDMETHOD. | ||
|
||
METHOD display. | ||
ASSERT 1 = 'not supported'. | ||
ENDMETHOD. | ||
|
||
METHOD if_demo_output~display. | ||
ASSERT 1 = 'not supported'. | ||
ENDMETHOD. | ||
ENDCLASS. |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
INTERFACE if_demo_output PUBLIC. | ||
|
||
METHODS write | ||
IMPORTING | ||
data TYPE any. | ||
|
||
METHODS display. | ||
|
||
ENDINTERFACE. |