previous
|
start
|
next
Shallow and Deep Copy
Suppose
Employee e = new Employee(...)
Assignment makes shallow copy (only copies reference):
Employee copy = e;
Clone to make deep copy:
Employee cloned = (Employee)e.clone();
previous
|
start
|
next