I have an interface - here's a nicely contrived version as an example:
public interface Particle {
enum Charge {
POSITIVE, NEGATIVE
}
Charge getCharge();
double getMass();
etc...
}
Is there any difference in how implementations of this would behave if I defined the Charge
enum as static - i.e. does this have any effect:
public interface Particle {
static enum Charge {
POSITIVE, NEGATIVE
}
Charge getCharge();
double getMass();
etc...
}