4. What are the differences between default and protected access
specifiers?
Answers
Answered by
0
Answer:
If you like my answer ,then pls follow me
Explanation:
The protected specifier allows access by all subclasses of the class in question, whatever package they reside in, as well as to other code in the same package. The default specifier allows access by other code in the same package, but not by code that is in subclasses residing in different packages.
Answered by
2
Answer:
The Protected access specifier is visible within the same package and also visible in the subclass whereas the Default is a package level access specifier and it can be visible in the same package
Explanation:
please mark it branlist
Similar questions