Java: How to refer to subclass's static variable in abstract class?
问题 I understand, thanks to this question, that the value of a static field declared in an abstract class will be the same among all subclasses. The solution in the aforementioned question is to declare a static field in each subclass, and an abstract "getter" instance method in the abstract class that must be implemented by each subclass. But I have a static method in my abstract class, and I need to refer to the static field of the subclass. I can't do this because the getter is an instance