+ 2
Can I create a public method inside a default class?
How this Public method is accessible to all classes as this method is a part of default class?
1 Réponse
+ 1
Technically, I guess the method *would* have been visible anywhere, but since you won't be able to instantiate the class outside the package you wont be able to use it, so is essentially package visible