public
CAggregate clone()
{
CAggregate newObj
=
new
CAggregate();
//
newObj.list = this.list;
newObj.list
=
new
ArrayList();
for
(
int
i
=
0
; i
<
this
.list.length ; i
++
)
{
newObj.list[i]
=
this
.list[i];
}
return
newObj;
}
转载于:https://www.cnblogs.com/linyijia/archive/2011/02/12/1952238.html