posted 14 years ago
It's basically another way of saying that there is HAS-A relation between two classes
Suppose we have following two classes :
class A{
private int a,b,c;
}
public class B{
private int bla1,bla2,bla3;
private A a;
}
now If we create an object of B, and then try shallow copying, then bla1,bla2,bla3 would be copied , but not the content referenced by a