4 ms·
well, yes however fields cannot be part of an 'interface' in java. (they can but they'd be static) I do use package private fields liberally, though. Just not
by xxs 6y ago
well, yes however fields cannot be part of an 'interface' in java. (they can but they'd be static)
I do use package private fields liberally, though. Just not non-static public fields.
- JulianMorrison 6y agoInterface as used here means the broader concept of a "a class's interface is its public advertised operations" and not the specific Java thing called an interface.