Static Variable?

I have read a lot and already have a crude idea about what a static variable is.

But I want someone here experienced to explain in layman language what a static variable exactly is...
a static variable means that it is only instantiated once. so if i made a class which has a static variable number declared like:
 
static int variable = 0;


and i made three instances of this class, the variable would be static in all of them. if in one object i incremented the variable by 10, then in the other two objects it would also be incremented by 10.
Topic archived. No new replies allowed.