Timeline for Error: Compile Error: Variable is not visible: MSTimeCalculator_CC.priorityMap at line 5
Current License: CC BY-SA 4.0
2 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Oct 18, 2023 at 12:48 | comment | added | Derek F |
As another note, you should be careful when mixing usage of static and instance variables/methods. While instance methods can access static variables (without prefixing with <class name>. , which still strikes me as odd), static variables/methods cannot access instance variables/methods. Personally, I always use <class name>.<static variable or method name> when accessing static things from non-static code. Helps to remind me that I'm working with static things and is more consistent style-wise. Also reduces the chance of shadowing.
|
|
Oct 18, 2023 at 12:41 | history | answered | Derek F | CC BY-SA 4.0 |