Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_014aUaQeLnwbb1zTpN7kHeat
23 lines
528 B
ABAP
23 lines
528 B
ABAP
CLASS {{p}}cx_no_attempt_left DEFINITION
|
|
PUBLIC
|
|
INHERITING FROM {{p}}cx_exam_error
|
|
FINAL
|
|
CREATE PUBLIC.
|
|
|
|
PUBLIC SECTION.
|
|
DATA mv_attempts TYPE i READ-ONLY.
|
|
|
|
METHODS constructor
|
|
IMPORTING iv_student_id TYPE string
|
|
iv_attempts TYPE i.
|
|
ENDCLASS.
|
|
|
|
|
|
CLASS {{p}}cx_no_attempt_left IMPLEMENTATION.
|
|
METHOD constructor.
|
|
super->constructor( iv_student_id = iv_student_id
|
|
iv_text = 'No attempt is left.' ).
|
|
mv_attempts = iv_attempts.
|
|
ENDMETHOD.
|
|
ENDCLASS.
|