rifter1818 Posted March 19, 2004 Posted March 19, 2004 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? Quote
georgepatotk Posted March 19, 2004 Posted March 19, 2004 dim Player2 as new Player1 create a new copy (independent class) dim Player2 as Player1 (dependent/same class with same object) Quote George C.K. Low
Malfunction Posted March 19, 2004 Posted March 19, 2004 I don't know VB but with c# I would implement ICloneable... Quote Debug me...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.