Any variable declared outside of a function (that is, any class member variable) is available to the entire class.
Variable scope is not the same as member accessibility, which controls access to properties or methods to other classes.