Java Coder
What is the access scope of a protected method?
1 Answer(s)      2 years and 3 months ago
Posted in : Java Beginners

Hi,

What is the access scope of a protected method?

thanks

Advertisement
View Answers

April 11, 2013 at 1:24 PM


Hi,

In Java program, A protected method can be accessed by the classes within the package or by the subclasses of the class of any package. The Protected method can be overridden by protected or public methods.

This link will help you. http://www.roseindia.net/java/master-java/scope.shtml