All variables are by default global and they are available from the point of declaration to any other file that is after the declaration but if you have some function or class you need to redeclare the variable in that class by the global keyword.