Protected access modifier in Java
Hello, If I am not wrong then the method with protected access modifier can be accessed by the same package and the sub-class outside the package. But I have problem regarding the same I have two packages p1 and p2, but when I try to access the method (protected) of package p1 from package p2,...
__________________
Java
domain name forum
|