Google Search - Blog...........

ABAP - Sample Program On Use Of Static Method - OOPS Concept.

REPORT YSUBOOPS19 .

data : num type i.

class testclass definition.
public section.
class-methods : testmethod.
endclass.

class testclass implementation.
method : testmethod.
num = 5.
write:/5 num.
endmethod.
endclass.

start-of-selection.
call method testclass=>testmethod.


Output 5

No comments:

Post a Comment