View Single Post
Re: Calling methods from different classes
Old
  (#4)
botman
Super Moderator
 
Status: Offline
Posts: 280
Join Date: Jan 2004
Location: Plano, TX
Default Re: Calling methods from different classes - 12-06-2004

"new Race()" creates a new object.

You have 2 different instances of the same type of class. Each of those 2 instances have their own member variables. Changing a member variable in one class won't change the same member variable in another class.

botman
  
Reply With Quote