Domain Name Forum

Domain Name Forum (http://www.domainnameforum.org/index.php)
-   Java (http://www.domainnameforum.org/forumdisplay.php?f=125)
-   -   Protected access modifier in Java (http://www.domainnameforum.org/showthread.php?t=114233)

Java 08-04-2010 04:49 AM

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,...


All times are GMT -4. The time now is 01:15 PM.

Powered by vBulletin®
Copyright ©2000 - 2026, Jelsoft Enterprises Ltd.