05-05-2008, 08:15 PM
|
#5 (permalink)
|
|
is cute and cuddly
Join Date: Mar 2008
Location: Vegas, Baby
Posts: 963
Thanks: 31
|
You may want to look into design patterns. In particular, the singleton, though that may not be the one you decide to go with. It just happens to be the first one I learned about and have been using with a lot of success lately in my project. Basically it allows you to pass static instances of your objects around betwween other classes without having to instantiate a new object each time (thus allowing you to use the properties from the original instance without worry that they no longer contain the values you expected them to).
-m
|
|
|
|