I wanted to deep and shollow copy with dynamic array? it is possible and how

In reply to muku_383:

class inner;
	int i = 5;
	int j[];
endclass
class outer;
	int o = 10;
	int k[];
	inner in = new();
	function void copy (outer ou);
		this.o = ou.o;
		this.in = new ou.in;
	endfunction
	endclass
module c_copy();
outer obj1, obj2;
initial begin
 obj1 = new();
 obj2 = new();
 obj2.copy(obj1);
 obj1.o = 20;
 obj1.in.i = 30;
 $display(" obj1.o=%0d, obj1.in.i =%0d",obj1.o, obj1.in.i);//20,30
 $display(" obj2.o=%0d, obj2.in.i =%0d",obj2.o, obj2.in.i);//10,5
 end
endmodule