how do i access a public method of a default class outside the package
I have a class with no modifier(default), which has a public method called
mymeth. I know I could access the method when I am within the package.
However I would like to access the method when I am outside the package.
does anyone has an Idea on how it could be done. theoretically I think it
should be possible since public method means access by the world. here is
the example of my class and method:
class myclass{
public void mymeth(int i,int b){
.....
}
}
No comments:
Post a Comment