a small info......

1 view
Skip to first unread message

balu

unread,
Apr 18, 2011, 11:53:40 PM4/18/11
to dq-abap
hai ,
I came 2 know the difference between instance and static
attribute . .For static attrubite the same attribute is
used every time a new object is created . But in instance
attribute new attribute is created .




eg : class lcl_ex defiintion .
data a1 type i value 99 .
class-data a2 type i valie 66 .
endclass .
data obj type ref to lcl_ex , obj1 type ref
to lcl_ex .
create object obj .
create object obj1 ,
write : obj->a1 , obj->a2 ,obj1->a1 , obj1->a2 .

i foud this interesting . discard if u kniw already ............... tc


Reply all
Reply to author
Forward
0 new messages