If you got a reference to the Timer class and you were able to access yourVariable.timeText
but not yourVariable.timeValue
, the reason for that is that timeValue is static. “Static” means that it’s associated with the class, in abstract, rather than any particular copy of the class.
If you can’t articulate why that variable is static, then it probably shouldn’t be.
But if it has a reason to be static, you can still access it from outside the class, you just do it using the class name instead of a variable (because, again, it’s associated with the class itself, not any particular copy). In this case, you would write Timer.timeValue