Java

Access Modifiers in Java ,How Access Level Helps in Inheritance and Polymorphism

Posted on

In java their are 4 access modifiers public,protected,<default>,<package>,private Public-PublicĀ  is the access modifiers which shows the highest visibility any class member declare as public can be visible 1.Within the class. 2.Within the package. 3.Outside the package. Protected-Any class member declare as protected are visible 1.Within the class. 2.Within the package. 3.Out side the package but […]