Skip to Content
-2
Jan 02, 2019 at 11:09 PM

how to assign current class reference to a variable

353 Views

hi all,

i want to assign current class reference to a variable.

ex; in the below example i am not knowing how to assign lref_A1 in class A2 with reference of A1.

may i know how to assign it.

class A1 defination,
 methods first,
endclass

class A2,
data lref_A1 type ref to A1,
methods some_test,
endclass.

class A1 implementaion.
method first.
create object lref_new2 type ref to A2.
*****how to assign lref_A1 the current reference 

***lref_new2-lref_A1 = this or lref_new2-lref_A1 = me "is not working 

********how to assign
end method.
endclass.

create object lref_new type A1.
lref_new->first( ).