"Roland Pibinger" <> wrote in message
news:...
> On Fri, 1 Sep 2006 01:16:30 -0700, "Jim Langston"
> <> wrote:
>>Your question is similar to saying this:
>>
>>int X = 10;
>>int Y = X;
>>
>>X = 5;
>>Y = 7;
>>
>>Is my interger 5 or 7?
>
> 5 and 7 are values, your player is an object. That's the difference.
> For a short description of the difference between values and objects
> (entities) see:
> http://www.two-sdg.demon.co.uk/curbr...ctsOfValue.pdf
My player has the value of "Serpardum" also. And, per your example, a value
of Running_ or Stopped_.
And I can come up with many many more reasons to want to copy an object.
Say I'm writing a graphical tool that contains 3 dimentional objects. And
the user wants to copy a 3d object on the screen and make 2 of them. In my
program I may store these in classes, and would simply copy the existing
object to a new one.
Just because *you* can't think of any good reasons to copy objects doesn't
mean they don't exist.