Jump to content
Xtreme .Net Talk

Recommended Posts

Posted
Hi just wonder about making copies of things, what i want to know is how to control what makes a copy of and what makes a refrence to, A prime example of this is using ByRef and ByVal in functions, however i want to do this with objects not being passed into the functions, such as lets say i have my character class and Player1 is a character,..... how would i set Player2 = to player1 such that player2 is independant (not a refrence to) of player1, and how would i set it such that it is?

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...