What are different types of access modifiers
Ask by Pushpendra Singh
Updated 21 Sep 2020
Private: Any thing declared as private can’t be seen outside of its class.
Protected: Any thing declared as protected can be accessed by classes in the same package and subclasses in the other packages.
Default modifier : Can be accessed only to classes in the same package.