Skip to main content
gamedev.net
๐Ÿ”’ Locked

[java] variable access question

Started by omegasyphon Nov 17, 2001 at 3:23 PM 1 replies 450+ views
Original Post
omegasyphon
omegasyphon
im having trouble accessing a variable in another class, you would think the following code would work but it doesnt. getTrack is in a class, and getTrack just returns a private integer. all i want to do is set the private variable in getTrack to 0 myTracks[x].getTrack()=0;
omegasyphon
omegasyphon
yes, i realized that error shortly after. thanks

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.