This week's book giveaway is in the Mac OS forum. We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line! See this thread for details.
Originally posted by Aaron Rhena: What is the main difference between shallow cloning and deep cloning of objects?
Lets say you have an object which contains other objects which contain others etc. Basically, you have a complex tree of objects. A deep copy would go into each of these objects and create a copy of each of them. A shallow copy would copy the first ( outer ) object, and then copy references to the existing objects, rather than create copies of them.