New course! Every coder should learn Generative AI!
Try a free lesson+ 2
You can access all variables using getters (which should not be private), which are functions (methods) returning variable value. I don't know if it's possible to access private methods, so I will be glad to see other answers too :p