How do you make class sub1 a subclass of class super1?
A.
In super1 use clause "sub1 REDEFINITION" in the DEFINITION part.
B.
In sub1 use clause "INHERITING FROM super1" in the IMPLEMENTATION part.
C.
In sub1 use clause "INHERITING FROM super1" in the DEFINITION part.
D.
In super1 use clause "sub1 REDEFINITION" in the IMPLEMENTATION part.
The Answer Is:
C
This question includes an explanation.
Explanation:
Comprehensive and Detailed Explanation From Exact Extract:
In ABAP, inheritance is declared in the class DEFINITION using the keyword INHERITING FROM. The RAP documentation shows this exact syntax in multiple class definitions, for example:
“CLASS lcl_local_event_consumption DEFINITION INHERITING FROM cl_abap_behavior_event_handler.” This proves the inheritance clause belongs to the DEFINITION section, not the IMPLEMENTATION, and uses the form INHERITING FROM .(Back-End Developer – ABAP Cloud study areas: RAP handler/event classes use standard ABAP OO rules; architecture shows inheritance declared in DEFINITION with INHERITING FROM.)
===========
C_ABAPD_2507 PDF/Engine
Printable Format
Value of Money
100% Pass Assurance
Verified Answers
Researched by Industry Experts
Based on Real Exams Scenarios
100% Real Questions
Get 60% Discount on All Products,
Use Coupon: "8w52ceb345"