Latest Tutorials| Questions and Answers|Ask Questions?|Site Map



Home Answers Viewqa Java-Beginners What is the access scope of a protected method?

Have Programming Question? Ask it here!
 
 
 


Java Coder
What is the access scope of a protected method?
1 Answer(s)      a year 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



Related Tutorials/Questions & Answers:
Advertisements
 

 

 

DMCA.com