* Create .abapgit.xml * Create package.devc.xml * Create package.devc.xml * Create zcl_anagram.clas.xml * Update .abapgit.xml * Add packages * Add classes * Update packages * Update abapGit.xml * Update XML objects * Fix EOF * Update EE * Update EOF * Change starting folder * Add execises * Update .abapgit.xml * Package description * Update xml * Update EOF Co-authored-by: Marc Bernard <marc@mail.marcbernardtools.com>
56 lines
1.4 KiB
ABAP
56 lines
1.4 KiB
ABAP
CLASS zcl_custom_signs DEFINITION
|
|
PUBLIC
|
|
FINAL
|
|
CREATE PUBLIC.
|
|
|
|
PUBLIC SECTION.
|
|
|
|
"! Build a sign that includes both of the parameters.
|
|
METHODS build_sign IMPORTING occasion TYPE string
|
|
name TYPE string
|
|
RETURNING VALUE(result) TYPE string.
|
|
|
|
"! Build a birthday sign that conditionally formats the return string.
|
|
METHODS build_birthday_sign IMPORTING age TYPE i
|
|
RETURNING VALUE(result) TYPE string.
|
|
|
|
"! Build a graduation sign that includes multiple lines
|
|
METHODS graduation_for IMPORTING name TYPE string
|
|
year TYPE i
|
|
RETURNING VALUE(result) TYPE string.
|
|
|
|
"! Determine cost based on each character of sign parameter that builds
|
|
"! the template string that includes the currency parameter.
|
|
METHODS cost_of IMPORTING sign TYPE string
|
|
currency TYPE string
|
|
RETURNING VALUE(result) TYPE string.
|
|
|
|
ENDCLASS.
|
|
|
|
|
|
|
|
CLASS zcl_custom_signs IMPLEMENTATION.
|
|
|
|
|
|
METHOD build_sign.
|
|
"Implement solution here
|
|
ENDMETHOD.
|
|
|
|
|
|
METHOD build_birthday_sign.
|
|
"Implement solution here
|
|
ENDMETHOD.
|
|
|
|
|
|
METHOD graduation_for.
|
|
"Implement solution here
|
|
ENDMETHOD.
|
|
|
|
|
|
METHOD cost_of.
|
|
"Implement solution here
|
|
ENDMETHOD.
|
|
|
|
|
|
ENDCLASS.
|