0
can we acess a pakage out of its class?
1 Antwort
+ 3
Do you mean can we access a class outside of a certain package ? If thats the case then yes you can. The step to access a class in a different package is basically:
import packageName.className;
This will import solely the targetted class.
or
import packageName.*;
This will import all classes thats within that particular package.