sorry but i'm not so expert in developing games :( ( not yet! ), so i can't what are the "best practices".
Global variables are variable of the type
fields of the object.
So there's only one "bar" and one "fee" for each object
Global variables are variable of the type
fields of the object.
So there's only one "bar" and one "fee" for each object