I am a little bit confused. Suppose I have a method
void test(){ }
How exactly can I make this package-protected? The protected modified makes it overridable by children.
I am a little bit confused. Suppose I have a method
void test(){ }
How exactly can I make this package-protected? The protected modified makes it overridable by children.
If you declare it as
void test(){ }
It means this function is package-private. Other classes can use it if they are in the same package.