Public - This is the least restrictive,accessible to entire project;
Default - If no access modifier is specified in the declaration, accessible only within package,not accessible in other packages or sub packages;
Protected - Accessible to all classes in the package and to all sub-classes of its class in any package where this class is visible.
0 comments:
Post a Comment