Can a class be declared as protected?

Hi,

Can a class be declared as protected?

thanks

View Answers

April 11, 2013 at 1:16 PM

Hi,

A class can't be declared as protected. only methods can be declared as protected.

http://www.roseindia.net/java/master-java/method_overriding.shtml

This link will helpful to you.

thanks,









Related Tutorials/Questions & Answers:
Advertisements