HI All,
consider the class/general example like this:
class A;
integer i = 1;
endclass
class B;
integer j = 1;
A obj_a = new;
endclass
B b1, b2;
-
object assignment
b1 = new;
b2 = b1; -
shallow copy
b1= new;
b2 = new b1; -
deep copy
b1= new;
b2 = new;
b2.copy(b1)
Query: Where all these 3 will be used?
I searched in few websites, could not find the application of all these.
I wanted to understand more, where these kind of copy statments are used?
can you please give one or two examples?
Thank You,