Sololearn: Learn to Code
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
28th Dec 2020, 9:15 PM
Michal Doruch