1 of 38
PRIVATE SECTION.
Data: price type course-price.
ENDCLASS.
(More than one answer is correct)
2 of 38
3 of 38
cl_gui_alv
cl_gui_custom_grid
cl_gui_custom_container
cl_gui_alv_grid
4 of 38
(More than one answer is correct)
5 of 38
Event
Method
Attribute
Object
Interface
6 of 38
7 of 38
8 of 38
CONSTRUCTOR
SET_TABLE_FOR_FIRST_DISPLAY
REFRESH_TABLE_DISPLAY
SET_TABLE_FOR_DISPLAY
9 of 38
10 public section.
20 Data: school(20) type c,
30 Supervisor type string value ADAMS,
40 Price(3) type p decimals 2 value 100 READ-
ONLY.
50 types: type_category(15) type c,
60 type_name(10) type c.
endclass.
40,70
30,80
70,80
40, 120
30,120
10 of 38
11 of 38
Exceptions
Changing
Importing
Returning
Exporting
12 of 38
13 of 38
14 of 38
15 of 38
private section.
data: category(10) type C value 'Objects'.
endclass.
*Instantiation omitted
course_name = course1=>name.
course_name = name
course_name = course1->name.
name can not be accessed unless course1 is
instantiated
course_price = lcl_course=>price.
16 of 38
Private section.
endclass.
method display_price.
course_name = im_course_name.
If course_name = c_objects101.
Write: price.
Endif.
endmethod.
endclass.
start-of-selection.
17 of 38
(More than one answer is correct)
18 of 38
Importing
Returning
Exception
Result
19 of 38
METHOD list_prices_and_discounts.
ENDMETHOD.
ENDCLASS.
20 of 38
21 of 38
Create Constructor
Call Method
Call Constructor
Create Object
22 of 38
23 of 38
24 of 38
10 public section.
20 Data: Price(3) type p decimals 2
value 100 READ-ONLY.
30 Types: type_category(15) type C READ-ONLY.
40 Constants: write_position type I value 10 READ-ONLY.
50 private section.
60 data: category(15) type C READ-ONLY,
70 class-data: course_count type I READ-ONLY.
endclass.
40
50
20
30
60
26 of 38
27 of 38
attributes
definition
method
implementation
28 of 38
Events
All of the answers are correct
None of the answers are correct
Attributes
Methods
29 of 38
-------------------
| cl_myclass |
-------------------
| +city |
| #address |
|-----------------|
| + get_city() |
| - display_addr()|
| |
|-----------------|
(More than one answer is correct)
30 of 38
public section.
data: name(15) type c value 'ABAPObjects101'.
class-data price type p value 100.
private section.
data: category(10) type C value 'Objects'.
endclass.
31 of 38
32 of 38
Class Methods
Class Implementation
Class Definition
Object Instance
33 of 38
R3TR CLASS
R3TR LOCAL CLASS
None of the answers are correct
R3TR ZCL CLASS
R3TR lcl_class
34 of 38
35 of 38
36 of 38
37 of 38
38 of 38