Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community!
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.Start your free trial
Razvan Cirstea2,493 Points
What does " static " imply ?
What does defining a variable as "static" imply ? What would be the benefit ?
Mike Papamichail4,883 Points
I'm not sure if this is what it implies, but from what i understand you can declare a variable(or field) as static so that it is accessible(assuming it is also public) straight out of the class without the need of instantiating an object of that class.And, this static field will be available to every single instance of that class that gets created without the need of declaring it every time you instantiate an object of that class.Hopefully i got something right here! Craig Dennis (i would really like to know the "right" answer to this question sir because i'm not quite sure i got it right)! Thanks.