Object Copy

In computing, a deep copy is copy that contains the complete encapsulated data of the original object, allowing it to be used independently of the original object. In contrast, a shallow copy is a copy that may be associated to data shared by the original and the copy. For example, if a C++ class contains a pointer to a null-terminated string, the deep copy would also copy the string, while the shallow copy would create an object where the pointer points to same string, and changes to it affect both objects. In computing, the result of shallow copying one object to another variable is two variables pointing to the same physical object in memory. Thus changing the object pointed to by one of the variables will also cause the contents of the other variable to change (since the same object in memory is being altered). Shallow copies are common when reference counting objects. The technique is by default when copying objects in Java.

 

<< PreviousWord BrowserNext >>
ayub khan
paul b. johnson, jr.
4dtv
john bell williams
poispakkoruotsi
embedded operating system
windows ce
fin whale
pumice
pommel horse (gymnastics)
rings (gymnastics)
fisher price
cheyenne mountain
grafeneck
parallel bars (gymnastics)
brownlow medal
fighter ace
list of toy brands
grammy awards of 1961
viking line
blackmail
floyd warshall algorithm
hamburger university
nestor torres
paul horn
how to prepare an onion cell slide
the garden of cyrus
heusden, belgium
acrylic
post
angular resolution
news of the world
birla
droit de seigneur
opengem
dartington hall
1982 golden raspberry awards
cyfra plus
mallard
ernie els
lodging
opcode
premature ventricular contraction
class of '74