Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

what is difference between  RSS feed

 
srikanth arroju
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
what is the difference between static ,instance ,local variables
 
marc weber
Sheriff
Posts: 11343
Java Mac Safari
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by srikanth arroju:
what is the difference between static ,instance ,local variables

"static" means associated with the class, rather than any particular instance.

"Instance" means non-static. In other words, associated with a particular instance.

"Local" means limited to a particular scope within a class -- typically a method body.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!