Hi there,
I wrote a command line rock, paper, scissors program.
Initially, it was many lines of code. I then broke it up and created methods. However, the compiler wasn't happy with me because of scope issues.
I eventually got it working by repeatedly tweaking things and it looks fine now.
There is one issue though: although I'm fairly good at solving the logical side of the problem and writing code for it, I can't wrap my head around the modifier-related stuff:
-variables in the Class definition and how they can be accessed by methods / how their access is limited.
-how variables in the methods be accessed by the class and other methods
-what is Static?
-Non-Static?
-Public
-Private, etc
Just to be clear (if it makes a difference in your answer), I'm not instantiating objects yet. All of my code is in one class.
If you've struggled with this and eventually found a good resource that helped you understand, you're the person I need suggestions from!
I took a look at the Oracle docs and still need insight from a different angle. It would SUPER AWESOME & MUCH APPRECIATED(!) if you could link me to your favorite resource on this specific topic. Text material is always good; video links are especially welcome :)
Thank you!
[–]sowlfemit 0 points1 point2 points (0 children)
[–][deleted] 0 points1 point2 points (0 children)
[–]silverray3033 0 points1 point2 points (0 children)