What is the access scope of a protected method?

Hi,

What is the access scope of a protected method?

thanks

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









Related Tutorials/Questions & Answers:
Advertisements