You simply need to declare a scoped variable (with "my") in the scope of the package.
Then your methods can all access this variable.
Be aware, though, that they will all share the one value.
If one instance updates it, the others will all see that update.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.