Object Copy - Methods of Copying

Methods of Copying

The design goal of most objects is to give the semblance of being made out of one monolithic block even though most are not. As objects are made up of several different parts, copying becomes nontrivial. Several strategies exist to attack this problem.

Consider two objects, A and B, which each refer to two memory blocks xi and yi (i = 1, 2,...). Think of A and B as strings and of xi and yi (i = 1, 2,...) as the characters they contain. There are different strategies for copying A into B.

Read more about this topic:  Object Copy

Famous quotes containing the words methods of, methods and/or copying:

    If men got pregnant, there would be safe, reliable methods of birth control. They’d be inexpensive, too.
    Anna Quindlen (b. 1952)

    Commerce is unexpectedly confident and serene, alert, adventurous, and unwearied. It is very natural in its methods withal, far more so than many fantastic enterprises and sentimental experiments, and hence its singular success.
    Henry David Thoreau (1817–1862)

    In the course of writing one historical book or another, it has happened that I could hardly restrain myself from simply copying entire documents. Indeed, I sometimes sank down among the documents and said to myself, I can’t improve on these.
    Alfred Döblin (1878–1957)