D
DemmeGod
This concerns visibility level for interface methods. I've got an
interface, with a method defined as so:
void method1();
Normally, this would be package-level visibility, however upon
implementing this interface, I am forced to make the method public.
When I make it package, the compiler yells at me saying that I'm
attempting to assign a weaker access level which strikes me as really
bizarre. If it makes any difference, both the interface and the
implementing class are in the same package. Is there something weird
going on here, or is my ignorance flaring up?
Thanks,
John
interface, with a method defined as so:
void method1();
Normally, this would be package-level visibility, however upon
implementing this interface, I am forced to make the method public.
When I make it package, the compiler yells at me saying that I'm
attempting to assign a weaker access level which strikes me as really
bizarre. If it makes any difference, both the interface and the
implementing class are in the same package. Is there something weird
going on here, or is my ignorance flaring up?
Thanks,
John