View Single Post
  #8   Spotlight this post!  
Unread 09-04-2014, 23:50
vgdude999 vgdude999 is offline
Programmer/Driver
FRC #1751 (Comsewogue Warriors)
Team Role: Programmer
 
Join Date: Aug 2013
Rookie Year: 2012
Location: Port Jefferson Station, NY
Posts: 25
vgdude999 is an unknown quantity at this point
Quote:
Originally Posted by sthreet View Post
Thanks, it worked perfectly. Doesn't seem to like multiple instances.

That is really weird, that you can access a static variable when you can't access a non-static one, I can see something like public/private/semiprivate where semiprivate is the same as current public and public is the same as current public static.

I do come from python and javascript though, so not having types to variables must be weird here.
From my (very basic) understanding, non static variables and methods can only be used if an object of their class is created. So, if you kept the talons non static, you would have to actually create an instance of the outputmap.
So,
outputmap x = new outputmap();

Static variables and methods, however, do not require this.
Please correct me if anything I said is horribly wrong
__________________
2013: Rookie year, programmer-in-training; SBPLI Regional Finalists
2014: Co-Captain, Programmer, Driver; Seeded 15th
2015: Co-Captain, Programmer, Driver
Reply With Quote