Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to change the behaviour of static variable?  RSS feed

 
Venki
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
static variable don�t� behave like a static variable.
Assume that a static variable is declared at the instant level, I mean to say that its is class level variable, again it mean to say that only one instance of static variable will be used for all instance of that class. Now I want to change this behavior, how?
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Exactly how do you want the variable to behave?
Incidently your user name should be changed to reflect JavaRanch practice.
Bill
 
Jason Menard
Sheriff
Posts: 6450
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Bill!
dinager,
Welcome to JavaRanch. We don't have many rules here, but one thing we do have is a naming policy that we ask everybody to abide by. Please change your display name to reflect this policy.
Thank you.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!